Function at 0x405c8e
Capabilities:
Contain obfuscated stackstrings
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
cmp dword [ebp + 0x10], 0
jbe 0x405cb9
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x405cb9
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00405975
pop ecx
pop ecx
jmp 0x406507
cmp dword [ebp + 0x10], 0
jne 0x406021
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.00404a45
mov dword [ebp - 0x4c], eax
cmp dword [0xa9b818], 0
jne 0x405ff5
mov dword [ebp - 0xc0], 0x3fdd
lea eax, [ebp - 0xc0]
push eax
call fcn.00405886
pop ecx
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0x70], 0
mov byte [ebp - 0x6f], 0x48
mov byte [ebp - 0x6e], 2
mov byte [ebp - 0x6d], 0xab
mov byte [ebp - 0x6c], 1
mov byte [ebp - 0x6b], 0x68
mov byte [ebp - 0x6a], 0xc
mov byte [ebp - 0x69], 0x5c
mov byte [ebp - 0x68], 2
mov byte [ebp - 0x67], 0x7b
mov byte [ebp - 0x66], 9
mov byte [ebp - 0x65], 0x77
mov byte [ebp - 0x64], 4
mov byte [ebp - 0x63], 0x70
mov byte [ebp - 0x62], 8
mov byte [ebp - 0x61], 0x7c
mov byte [ebp - 0x60], 3
mov byte [ebp - 0x5f], 0x65
mov byte [ebp - 0x5e], 7
mov byte [ebp - 0x5d], 0x7a
mov byte [ebp - 0x5c], 5
mov byte [ebp - 0x5b], 0x85
mov byte [ebp - 0x5a], 6
mov byte [ebp - 0x59], 0x88
mov byte [ebp - 0x58], 0xb
mov byte [ebp - 0x57], 0x8f
mov byte [ebp - 0x56], 0xa
mov byte [ebp - 0x55], 0x5e
and dword [ebp - 0xc], 0
and dword [ebp - 0xa4], 0
jmp 0x405d80
mov eax, dword [ebp - 0xc]
inc eax
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1c
jae 0x405deb
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x70]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0xc], eax
jne 0x405dac
mov dword [ebp - 0xa4], 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x405d78
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x6f]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xa4]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x405dd7
mov eax, dword [ebp - 0x38]
add eax, 0x100
mov dword [ebp - 0x38], eax
jmp 0x405dc4
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0x70]
mov cl, byte [ebp - 0x38]
mov byte [ebp + eax - 0xd8], cl
jmp 0x405d78
xor eax, eax
inc eax
imul eax, eax, 0xd
mov byte [ebp + eax - 0xd8], 0
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x184]
call fcn.00407560
mov edx, dword [ebp - 0xb4]
mov ecx, eax
call fcn.00404a45
mov dword [0xa9b818], eax
lea ecx, [ebp - 0x184]
call fcn.00402af0
and dword [ebp - 0x50], 0
jmp 0x405e35
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xe
jae 0x405e48
mov eax, dword [ebp - 0x50]
mov byte [ebp + eax - 0xd8], 0
jmp 0x405e2e
mov byte [ebp - 0x94], 9
mov byte [ebp - 0x93], 0x64
mov byte [ebp - 0x92], 7
mov byte [ebp - 0x91], 0x75
mov byte [ebp - 0x90], 8
mov byte [ebp - 0x8f], 0x74
mov byte [ebp - 0x8e], 1
mov byte [ebp - 0x8d], 0x79
mov byte [ebp - 0x8c], 0xb
mov byte [ebp - 0x8b], 0x7c
mov byte [ebp - 0x8a], 2
mov byte [ebp - 0x89], 0x70
mov byte [ebp - 0x88], 3
mov byte [ebp - 0x87], 0x6e
mov byte [ebp - 0x86], 4
mov byte [ebp - 0x85], 0x83
mov byte [ebp - 0x84], 6
mov byte [ebp - 0x83], 0x61
mov byte [ebp - 0x82], 5
mov byte [ebp - 0x81], 0x78
mov byte [ebp - 0x80], 6
mov byte [ebp - 0x7f], 0x1e
mov byte [ebp - 0x7e], 0xc5
mov byte [ebp - 0x7d], 0xa2
mov byte [ebp - 0x7c], 0xc3
mov byte [ebp - 0x7b], 0xa7
mov byte [ebp - 0x7a], 0xd
mov byte [ebp - 0x79], 0x6c
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x77], 0x5a
mov byte [ebp - 0x76], 0xc
mov byte [ebp - 0x75], 0x8c
mov byte [ebp - 0x74], 0xa
mov byte [ebp - 0x73], 0x80
and dword [ebp - 4], 0
and dword [ebp - 0xa0], 0
jmp 0x405f21
mov eax, dword [ebp - 4]
inc eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x22
jae 0x405f98
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x94]
lea eax, [eax + eax + 2]
cmp dword [ebp - 4], eax
jne 0x405f53
mov dword [ebp - 0xa0], 6
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
jmp 0x405f19
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x93]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xa0]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jge 0x405f81
mov eax, dword [ebp - 0x40]
add eax, 0x100
mov dword [ebp - 0x40], eax
jmp 0x405f6e
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x94]
mov cl, byte [ebp - 0x40]
mov byte [ebp + eax - 0xe8], cl
jmp 0x405f19
xor eax, eax
inc eax
imul eax, eax, 0xe
mov byte [ebp + eax - 0xe8], 0
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x16c]
call fcn.00407560
mov edx, dword [ebp - 0xb4]
mov ecx, eax
call fcn.00404a45
mov dword [0xa9b8d0], eax
lea ecx, [ebp - 0x16c]
call fcn.00402af0
and dword [ebp - 0x44], 0
jmp 0x405fe2
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xf
jae 0x405ff5
mov eax, dword [ebp - 0x44]
mov byte [ebp + eax - 0xe8], 0
jmp 0x405fdb
mov eax, dword [0xa9b818]
cmp eax, dword [ebp - 0x4c]
je 0x406009
mov eax, dword [0xa9b8d0]
cmp eax, dword [ebp - 0x4c]
jne 0x406021
mov ecx, dword [ebp + 0xc]
call fcn.00402b4c
push eax
push dword [ebp + 8]
call fcn.00405975
pop ecx
pop ecx
jmp 0x406507
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x406505
mov eax, dword [ebp - 0x54]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x406505
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x54]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
jne 0x406505
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x74], 0
jbe 0x406505
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x78], 0
je 0x406505
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x10], edx
mov eax, 0xffff
mov word [ebp - 8], ax
or dword [ebp - 0x24], 0xffffffff
cmp dword [ebp + 0x10], 0
jbe 0x4060c2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x14]
ja 0x4060bd
mov eax, dword [ebp + 0x10]
dec eax
mov word [ebp - 8], ax
jmp 0x406242
mov eax, dword [0xa9b8f4]
and eax, 1
jne 0x4060ee
mov eax, dword [0xa9b8f4]
or eax, 1
mov dword [0xa9b8f4], eax
mov ecx, 0xa9b944
call fcn.00402c59
push 0x4a0b70
call fcn.0047ce4f
pop ecx
movzx eax, byte [0xa9b814]
test eax, eax
je 0x406154
mov ecx, 0xa9b944
call fcn.004075de
movzx eax, al
test eax, eax
jne 0x406154
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xac]
push eax
mov ecx, 0xa9b944
call fcn.00402c31
lea eax, [ebp - 0xec]
push eax
mov ecx, 0xa9b944
call fcn.00402c23
push eax
lea ecx, [ebp - 0xac]
call fcn.00402c46
movzx eax, al
test eax, eax
je 0x406154
lea ecx, [ebp - 0xac]
call fcn.004075e7
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x406242
mov ecx, 0xa9b944
call fcn.0040762b
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x18]
push eax
mov ecx, 0xa9b944
call fcn.0040762f
and dword [ebp - 0x28], 0
jmp 0x406186
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x18]
jae 0x406242
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x28]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x40623d
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.00407560
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x13c]
call fcn.00404a45
mov dword [ebp - 0xb0], eax
movzx eax, byte [0xa9b814]
test eax, eax
je 0x4061fe
mov ecx, 0xa9b944
call fcn.004075de
movzx eax, al
test eax, eax
jne 0x40621b
lea eax, [ebp - 0xb0]
push eax
mov ecx, 0xa9b944
call fcn.004075ed
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov byte [0xa9b814], 1
cmp dword [ebp - 0x24], 0xffffffff
jne 0x406232
mov eax, dword [ebp - 0xb0]
cmp eax, dword [ebp - 0x4c]
jne 0x406232
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x13c]
call fcn.00402af0
jmp 0x40617f
cmp dword [ebp + 0x10], 0
jne 0x406262
cmp dword [ebp - 0x24], 0xffffffff
je 0x406262
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x24]
mov ax, word [ecx + eax*2]
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
cmp eax, 0xffff
je 0x406505
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x1c]
movzx eax, word [ebp - 8]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jbe 0x406500
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + eax + 0x7c]
cmp dword [ebp - 0x14], edx
jae 0x406500
mov eax, dword [0xa9b8f4]
and eax, 2
jne 0x4062e1
mov eax, dword [0xa9b8f4]
or eax, 2
mov dword [0xa9b8f4], eax
push 0x475f
call fcn.004015eb
pop ecx
mov byte [0xa9b8fc], al
mov byte [ebp - 0x34], 1
mov byte [ebp - 0x33], 0x6d
mov byte [ebp - 0x32], 2
mov byte [ebp - 0x31], 0x6f
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x2f], 0x69
and dword [ebp - 0x20], 0
and dword [ebp - 0xbc], 0
jmp 0x40630e
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 6
jae 0x406353
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x33]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xbc]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jge 0x40633f
mov eax, dword [ebp - 0x48]
add eax, 0x100
mov dword [ebp - 0x48], eax
jmp 0x40632c
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x34]
mov cl, byte [ebp - 0x48]
mov byte [ebp + eax - 0x98], cl
jmp 0x406306
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0x98], 0
mov eax, dword [0xa9b8f4]
and eax, 4
jne 0x406394
mov eax, dword [0xa9b8f4]
or eax, 4
mov dword [0xa9b8f4], eax
lea eax, [ebp - 0x98]
push eax
mov ecx, 0xa9b8dc
call fcn.00407560
push 0x4a0b61
call fcn.0047ce4f
pop ecx
and dword [ebp - 0x3c], 0
jmp 0x4063a1
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jae 0x4063b4
mov eax, dword [ebp - 0x3c]
mov byte [ebp + eax - 0x98], 0
jmp 0x40639a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax]
movsx ecx, byte [0xa9b8fc]
cmp eax, ecx
je 0x4063d4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x4063ba
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10c]
call fcn.00407996
push 0xa9b8dc
lea ecx, [ebp - 0x10c]
call fcn.0040758f
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00403210
push dword [eax]
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x10c]
call fcn.004031fc
push dword [eax]
lea ecx, [ebp - 0x154]
call fcn.004079bf
lea eax, [ebp - 0x154]
push eax
call fcn.00404cbc
pop ecx
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x4064b7
push dword [ebp - 0x18]
lea ecx, [ebp - 0x124]
call fcn.00407560
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0x124]
call fcn.00404af3
movzx eax, al
test eax, eax
je 0x40648e
push 0
push dword [ebp - 0xc8]
push 0
push dword [ebp - 0x9c]
call fcn.00405c8e
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4064aa
push 1
push 0
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x9c]
call fcn.00405c8e
add esp, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x124]
call fcn.00402af0
jmp 0x4064ea
cmp dword [ebp + 0x10], 0
jne 0x4064cd
mov ecx, dword [ebp + 0xc]
call fcn.00402b4c
mov dword [ebp - 0xb8], eax
jmp 0x4064d7
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0xb8], eax
push dword [ebp - 0xb8]
push dword [ebp + 8]
call fcn.00405975
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x154]
call fcn.004029c8
lea ecx, [ebp - 0x10c]
call fcn.00402af0
mov eax, dword [ebp - 0x14]
jmp 0x406507
xor eax, eax
mov esp, ebp
pop ebp
ret