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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
cmp dword [ebp + 0x10], 0
jbe 0x4064a9
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x4064a9
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00406138
pop ecx
pop ecx
jmp 0x406eed
cmp dword [ebp + 0x10], 0
jne 0x40690d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.00404eda
mov dword [ebp - 0x48], eax
cmp dword [0xa80618], 0
jne 0x4068e1
mov dword [ebp - 0x100], 0x170e
lea eax, [ebp - 0x100]
push eax
call fcn.00406052
pop ecx
mov dword [ebp - 0xe8], eax
mov byte [ebp - 0x68], 0xc
mov byte [ebp - 0x67], 0x58
mov byte [ebp - 0x66], 2
mov byte [ebp - 0x65], 0x77
mov byte [ebp - 0x64], 7
mov byte [ebp - 0x63], 0x6e
mov byte [ebp - 0x62], 4
mov byte [ebp - 0x61], 0x6c
mov byte [ebp - 0x60], 3
mov byte [ebp - 0x5f], 0x5f
mov byte [ebp - 0x5e], 0xb
mov byte [ebp - 0x5d], 0x83
mov byte [ebp - 0x5c], 8
mov byte [ebp - 0x5b], 0x7c
mov byte [ebp - 0x5a], 5
mov byte [ebp - 0x59], 0x81
mov byte [ebp - 0x58], 0xa
mov byte [ebp - 0x57], 0x56
mov byte [ebp - 0x56], 1
mov byte [ebp - 0x55], 0x78
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0x5c
mov byte [ebp - 0x52], 9
mov byte [ebp - 0x51], 0x85
mov byte [ebp - 0x50], 6
mov byte [ebp - 0x4f], 0x8c
mov byte [ebp - 0x4e], 2
mov byte [ebp - 0x4d], 0xeb
and dword [ebp - 4], 0
and dword [ebp - 0xfc], 0
jmp 0x406570
mov eax, dword [ebp - 4]
inc eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1c
jae 0x4065db
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x68]
lea eax, [eax + eax + 2]
cmp dword [ebp - 4], eax
jne 0x40659c
mov dword [ebp - 0xfc], 2
mov eax, dword [ebp - 4]
mov dword [ebp - 4], eax
jmp 0x406568
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x67]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xfc]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x4065c7
mov eax, dword [ebp - 0x30]
add eax, 0x100
mov dword [ebp - 0x30], eax
jmp 0x4065b4
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x68]
mov cl, byte [ebp - 0x30]
mov byte [ebp + eax - 0x118], cl
jmp 0x406568
xor eax, eax
inc eax
imul eax, eax, 0xd
mov byte [ebp + eax - 0x118], 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00407dd5
mov edx, dword [ebp - 0xe8]
mov ecx, eax
call fcn.00404eda
mov dword [0xa80618], eax
lea ecx, [ebp - 0x1ac]
call fcn.00402f6a
and dword [ebp - 0x44], 0
jmp 0x406625
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xe
jae 0x406638
mov eax, dword [ebp - 0x44]
mov byte [ebp + eax - 0x118], 0
jmp 0x40661e
mov byte [ebp - 0xd4], 3
mov byte [ebp - 0xd3], 0x62
mov byte [ebp - 0xd2], 7
mov byte [ebp - 0xd1], 0x75
mov byte [ebp - 0xd0], 2
mov byte [ebp - 0xcf], 0x6a
mov byte [ebp - 0xce], 5
mov byte [ebp - 0xcd], 0x6c
mov byte [ebp - 0xcc], 0x24
mov byte [ebp - 0xcb], 0xe7
mov byte [ebp - 0xca], 0xc9
mov byte [ebp - 0xc9], 0x23
mov byte [ebp - 0xc8], 0x86
mov byte [ebp - 0xc7], 0xb3
mov byte [ebp - 0xc6], 0x1c
mov byte [ebp - 0xc5], 0x45
mov byte [ebp - 0xc4], 0xe
mov byte [ebp - 0xc3], 0x95
mov byte [ebp - 0xc2], 0x4e
mov byte [ebp - 0xc1], 0x68
mov byte [ebp - 0xc0], 0xbc
mov byte [ebp - 0xbf], 0x87
mov byte [ebp - 0xbe], 0xbf
mov byte [ebp - 0xbd], 0x78
mov byte [ebp - 0xbc], 0x9a
mov byte [ebp - 0xbb], 0xff
mov byte [ebp - 0xba], 0x63
mov byte [ebp - 0xb9], 0xb0
mov byte [ebp - 0xb8], 0xcd
mov byte [ebp - 0xb7], 0x1e
mov byte [ebp - 0xb6], 0x21
mov byte [ebp - 0xb5], 0x67
mov byte [ebp - 0xb4], 0x18
mov byte [ebp - 0xb3], 0x2a
mov byte [ebp - 0xb2], 0x78
mov byte [ebp - 0xb1], 0x2d
mov byte [ebp - 0xb0], 0xa1
mov byte [ebp - 0xaf], 0x3e
mov byte [ebp - 0xae], 0x68
mov byte [ebp - 0xad], 0x16
mov byte [ebp - 0xac], 0xf8
mov byte [ebp - 0xab], 0x40
mov byte [ebp - 0xaa], 0x90
mov byte [ebp - 0xa9], 0x56
mov byte [ebp - 0xa8], 4
mov byte [ebp - 0xa7], 0x7d
mov byte [ebp - 0xa6], 8
mov byte [ebp - 0xa5], 0x7a
mov byte [ebp - 0xa4], 9
mov byte [ebp - 0xa3], 0x70
mov byte [ebp - 0xa2], 0
mov byte [ebp - 0xa1], 0x52
mov byte [ebp - 0xa0], 0xb
mov byte [ebp - 0x9f], 0x84
mov byte [ebp - 0x9e], 6
mov byte [ebp - 0x9d], 0x63
mov byte [ebp - 0x9c], 0xd
mov byte [ebp - 0x9b], 0x6c
mov byte [ebp - 0x9a], 0xa
mov byte [ebp - 0x99], 0x7c
mov byte [ebp - 0x98], 0xc
mov byte [ebp - 0x97], 0x8c
mov byte [ebp - 0x96], 1
mov byte [ebp - 0x95], 0x8d
and dword [ebp - 8], 0
and dword [ebp - 0xe0], 0
jmp 0x40680d
mov eax, dword [ebp - 8]
inc eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x40
jae 0x406884
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0xd4]
lea eax, [eax + eax + 2]
cmp dword [ebp - 8], eax
jne 0x40683f
mov dword [ebp - 0xe0], 0x24
mov eax, dword [ebp - 8]
add eax, 0x22
mov dword [ebp - 8], eax
jmp 0x406805
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0xd3]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xe0]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x40686d
mov eax, dword [ebp - 0x3c]
add eax, 0x100
mov dword [ebp - 0x3c], eax
jmp 0x40685a
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0xd4]
mov cl, byte [ebp - 0x3c]
mov byte [ebp + eax - 0x128], cl
jmp 0x406805
xor eax, eax
inc eax
imul eax, eax, 0xe
mov byte [ebp + eax - 0x128], 0
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00407dd5
mov edx, dword [ebp - 0xe8]
mov ecx, eax
call fcn.00404eda
mov dword [0xa806d0], eax
lea ecx, [ebp - 0x1c4]
call fcn.00402f6a
and dword [ebp - 0x40], 0
jmp 0x4068ce
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xf
jae 0x4068e1
mov eax, dword [ebp - 0x40]
mov byte [ebp + eax - 0x128], 0
jmp 0x4068c7
mov eax, dword [0xa80618]
cmp eax, dword [ebp - 0x48]
je 0x4068f5
mov eax, dword [0xa806d0]
cmp eax, dword [ebp - 0x48]
jne 0x40690d
mov ecx, dword [ebp + 0xc]
call fcn.00402fc6
push eax
push dword [ebp + 8]
call fcn.00406138
pop ecx
pop ecx
jmp 0x406eed
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x406eeb
mov eax, dword [ebp - 0x4c]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x406eeb
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
jne 0x406eeb
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x74], 0
jbe 0x406eeb
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x78], 0
je 0x406eeb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x18], edx
mov eax, 0xffff
mov word [ebp - 0xc], ax
or dword [ebp - 0x28], 0xffffffff
cmp dword [ebp + 0x10], 0
jbe 0x4069ae
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x14]
ja 0x4069a9
mov eax, dword [ebp + 0x10]
dec eax
mov word [ebp - 0xc], ax
jmp 0x406b2e
mov eax, dword [0xa806dc]
and eax, 1
jne 0x4069da
mov eax, dword [0xa806dc]
or eax, 1
mov dword [0xa806dc], eax
mov ecx, 0xa80744
call fcn.004030d3
push 0x485aae
call fcn.00461ddf
pop ecx
movzx eax, byte [0xa80614]
test eax, eax
je 0x406a40
mov ecx, 0xa80744
call fcn.00407e53
movzx eax, al
test eax, eax
jne 0x406a40
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xec]
push eax
mov ecx, 0xa80744
call fcn.004030ab
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0xa80744
call fcn.0040309d
push eax
lea ecx, [ebp - 0xec]
call fcn.004030c0
movzx eax, al
test eax, eax
je 0x406a40
lea ecx, [ebp - 0xec]
call fcn.00407e5c
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x406b2e
mov ecx, 0xa80744
call fcn.00407ea0
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x18]
push eax
mov ecx, 0xa80744
call fcn.00407ea4
and dword [ebp - 0x20], 0
jmp 0x406a72
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x18]
jae 0x406b2e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x20]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
je 0x406b29
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x194]
call fcn.00407dd5
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x194]
call fcn.00404eda
mov dword [ebp - 0xf8], eax
movzx eax, byte [0xa80614]
test eax, eax
je 0x406aea
mov ecx, 0xa80744
call fcn.00407e53
movzx eax, al
test eax, eax
jne 0x406b07
lea eax, [ebp - 0xf8]
push eax
mov ecx, 0xa80744
call fcn.00407e62
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov byte [0xa80614], 1
cmp dword [ebp - 0x28], 0xffffffff
jne 0x406b1e
mov eax, dword [ebp - 0xf8]
cmp eax, dword [ebp - 0x48]
jne 0x406b1e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x194]
call fcn.00402f6a
jmp 0x406a6b
cmp dword [ebp + 0x10], 0
jne 0x406b4e
cmp dword [ebp - 0x28], 0xffffffff
je 0x406b4e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x28]
mov ax, word [ecx + eax*2]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
cmp eax, 0xffff
je 0x406eeb
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x1c]
movzx eax, word [ebp - 0xc]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jbe 0x406ee6
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + eax + 0x7c]
cmp dword [ebp - 0x14], edx
jae 0x406ee6
mov eax, dword [0xa806dc]
and eax, 2
jne 0x406bcd
mov eax, dword [0xa806dc]
or eax, 2
mov dword [0xa806dc], eax
push 0x1ae4
call fcn.00401845
pop ecx
mov byte [0xa806e4], al
mov byte [ebp - 0x94], 1
mov byte [ebp - 0x93], 0x6d
mov byte [ebp - 0x92], 0
mov byte [ebp - 0x91], 0x67
mov byte [ebp - 0x90], 0x23
mov byte [ebp - 0x8f], 0x3f
mov byte [ebp - 0x8e], 0x9d
mov byte [ebp - 0x8d], 0xf5
mov byte [ebp - 0x8c], 0x83
mov byte [ebp - 0x8b], 0x45
mov byte [ebp - 0x8a], 0x2e
mov byte [ebp - 0x89], 0x96
mov byte [ebp - 0x88], 0xe8
mov byte [ebp - 0x87], 0x81
mov byte [ebp - 0x86], 0x78
mov byte [ebp - 0x85], 0
mov byte [ebp - 0x84], 0x12
mov byte [ebp - 0x83], 0xb
mov byte [ebp - 0x82], 1
mov byte [ebp - 0x81], 0x31
mov byte [ebp - 0x80], 0x57
mov byte [ebp - 0x7f], 0xf3
mov byte [ebp - 0x7e], 0x66
mov byte [ebp - 0x7d], 0xe3
mov byte [ebp - 0x7c], 0xdb
mov byte [ebp - 0x7b], pe_nt_image_headers32
mov byte [ebp - 0x7a], 0xa1
mov byte [ebp - 0x79], 0xbc
mov byte [ebp - 0x78], 0xfc
mov byte [ebp - 0x77], 0xb6
mov byte [ebp - 0x76], 0x87
mov byte [ebp - 0x75], 0xc5
mov byte [ebp - 0x74], 0xed
mov byte [ebp - 0x73], 0
mov byte [ebp - 0x72], 0x94
mov byte [ebp - 0x71], 0x1d
mov byte [ebp - 0x70], 0xa0
mov byte [ebp - 0x6f], 0xef
mov byte [ebp - 0x6e], 0xeb
mov byte [ebp - 0x6d], 2
mov byte [ebp - 0x6c], 0x71
and dword [ebp - 0x10], 0
and dword [ebp - 0xf0], 0
jmp 0x406cc2
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x29
jae 0x406d39
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x94]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x10], eax
jne 0x406cf4
mov dword [ebp - 0xf0], 0x23
mov eax, dword [ebp - 0x10]
add eax, 0x21
mov dword [ebp - 0x10], eax
jmp 0x406cba
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x93]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xf0]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x406d22
mov eax, dword [ebp - 0x34]
add eax, 0x100
mov dword [ebp - 0x34], eax
jmp 0x406d0f
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x94]
mov cl, byte [ebp - 0x34]
mov byte [ebp + eax - 0xd8], cl
jmp 0x406cba
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0xd8], 0
mov eax, dword [0xa806dc]
and eax, 4
jne 0x406d7a
mov eax, dword [0xa806dc]
or eax, 4
mov dword [0xa806dc], eax
lea eax, [ebp - 0xd8]
push eax
mov ecx, 0xa80728
call fcn.00407dd5
push 0x485a9f
call fcn.00461ddf
pop ecx
and dword [ebp - 0x38], 0
jmp 0x406d87
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 4
jae 0x406d9a
mov eax, dword [ebp - 0x38]
mov byte [ebp + eax - 0xd8], 0
jmp 0x406d80
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax]
movsx ecx, byte [0xa806e4]
cmp eax, ecx
je 0x406dba
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x406da0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x14c]
call fcn.004081f6
push 0xa80728
lea ecx, [ebp - 0x14c]
call fcn.00407e04
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040369a
push dword [eax]
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00403686
push dword [eax]
lea ecx, [ebp - 0x17c]
call fcn.0040821f
lea eax, [ebp - 0x17c]
push eax
call fcn.0040509b
pop ecx
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x406e9d
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x164]
call fcn.00407dd5
lea edx, [ebp - 0x104]
lea ecx, [ebp - 0x164]
call fcn.00404f88
movzx eax, al
test eax, eax
je 0x406e74
push 0
push dword [ebp - 0x104]
push 0
push dword [ebp - 0xdc]
call fcn.0040647e
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x406e90
push 1
push 0
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0xdc]
call fcn.0040647e
add esp, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x164]
call fcn.00402f6a
jmp 0x406ed0
cmp dword [ebp + 0x10], 0
jne 0x406eb3
mov ecx, dword [ebp + 0xc]
call fcn.00402fc6
mov dword [ebp - 0xe4], eax
jmp 0x406ebd
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0xe4], eax
push dword [ebp - 0xe4]
push dword [ebp + 8]
call fcn.00406138
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x17c]
call fcn.00402e42
lea ecx, [ebp - 0x14c]
call fcn.00402f6a
mov eax, dword [ebp - 0x14]
jmp 0x406eed
xor eax, eax
mov esp, ebp
pop ebp
ret