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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
cmp dword [ebp + 0x10], 0
jbe 0x406a84
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x406a84
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00406624
pop ecx
pop ecx
jmp 0x407457
cmp dword [ebp + 0x10], 0
jne 0x406f14
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.00405478
mov dword [ebp - 0x48], eax
cmp dword [0xa83f38], 0
jne 0x406ee8
mov dword [ebp - 0xf0], 0x6448
lea eax, [ebp - 0xf0]
push eax
call fcn.0040653e
pop ecx
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0x8c], 0xc
mov byte [ebp - 0x8b], 0x58
mov byte [ebp - 0x8a], 4
mov byte [ebp - 0x89], 0x68
mov byte [ebp - 0x88], 1
mov byte [ebp - 0x87], 0x6a
mov byte [ebp - 0x86], 9
mov byte [ebp - 0x85], 0x75
mov byte [ebp - 0x84], 0xa
mov byte [ebp - 0x83], 0x4e
mov byte [ebp - 0x82], 3
mov byte [ebp - 0x81], 0x61
mov byte [ebp - 0x80], 0xb
mov byte [ebp - 0x7f], 0x85
mov byte [ebp - 0x7e], 6
mov byte [ebp - 0x7d], 0x82
mov byte [ebp - 0x7c], 2
mov byte [ebp - 0x7b], 0x85
mov byte [ebp - 0x7a], 5
mov byte [ebp - 0x79], 0x85
mov byte [ebp - 0x78], 7
mov byte [ebp - 0x77], 0x7e
mov byte [ebp - 0x76], 8
mov byte [ebp - 0x75], 0x86
mov byte [ebp - 0x74], 0
mov byte [ebp - 0x73], 0x60
mov byte [ebp - 0x72], 0xf
mov byte [ebp - 0x71], 0x5e
mov byte [ebp - 0x70], 0xb
mov byte [ebp - 0x6f], 0xd5
mov byte [ebp - 0x6e], 0xb8
mov byte [ebp - 0x6d], 0x39
mov byte [ebp - 0x6c], 0x68
mov byte [ebp - 0x6b], 0x3b
mov byte [ebp - 0x6a], 0x4f
mov byte [ebp - 0x69], 0x5e
mov byte [ebp - 0x68], 0x81
mov byte [ebp - 0x67], 0x96
mov byte [ebp - 0x66], 0x8b
mov byte [ebp - 0x65], 3
mov byte [ebp - 0x64], 0xc7
and dword [ebp - 4], 0
and dword [ebp - 0xec], 0
jmp 0x406ba3
mov eax, dword [ebp - 4]
inc eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x29
jae 0x406c1a
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x8c]
lea eax, [eax + eax + 2]
cmp dword [ebp - 4], eax
jne 0x406bd5
mov dword [ebp - 0xec], 0xf
mov eax, dword [ebp - 4]
add eax, 0xd
mov dword [ebp - 4], eax
jmp 0x406b9b
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x8b]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xec]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x406c03
mov eax, dword [ebp - 0x30]
add eax, 0x100
mov dword [ebp - 0x30], eax
jmp 0x406bf0
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x8c]
mov cl, byte [ebp - 0x30]
mov byte [ebp + eax - 0x108], cl
jmp 0x406b9b
xor eax, eax
inc eax
imul eax, eax, 0xd
mov byte [ebp + eax - 0x108], 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0040811c
mov edx, dword [ebp - 0xd8]
mov ecx, eax
call fcn.00405478
mov dword [0xa83f38], eax
lea ecx, [ebp - 0x1b4]
call fcn.00403508
and dword [ebp - 0x44], 0
jmp 0x406c64
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xe
jae 0x406c77
mov eax, dword [ebp - 0x44]
mov byte [ebp + eax - 0x108], 0
jmp 0x406c5d
mov byte [ebp - 0xc4], 9
mov byte [ebp - 0xc3], 0x64
mov byte [ebp - 0xc2], 0xa
mov byte [ebp - 0xc1], 0x68
mov byte [ebp - 0xc0], 6
mov byte [ebp - 0xbf], 0x55
mov byte [ebp - 0xbe], 3
mov byte [ebp - 0xbd], 0x68
mov byte [ebp - 0xbc], 2
mov byte [ebp - 0xbb], 0x6e
mov byte [ebp - 0xba], 7
mov byte [ebp - 0xb9], 0x7d
mov byte [ebp - 0xb8], 0xc
mov byte [ebp - 0xb7], 0x80
mov byte [ebp - 0xb6], 4
mov byte [ebp - 0xb5], 0x83
mov byte [ebp - 0xb4], 5
mov byte [ebp - 0xb3], 0x76
mov byte [ebp - 0xb2], 0xd
mov byte [ebp - 0xb1], 0x6a
mov byte [ebp - 0xb0], 0x1c
mov byte [ebp - 0xaf], 0xb1
mov byte [ebp - 0xae], 0xbe
mov byte [ebp - 0xad], 0xf7
mov byte [ebp - 0xac], 0xe1
mov byte [ebp - 0xab], 0x54
mov byte [ebp - 0xaa], 0x9c
mov byte [ebp - 0xa9], 0x4e
mov byte [ebp - 0xa8], 0x45
mov byte [ebp - 0xa7], 0x2b
mov byte [ebp - 0xa6], 0x47
mov byte [ebp - 0xa5], 0xfa
mov byte [ebp - 0xa4], 0x7e
mov byte [ebp - 0xa3], 6
mov byte [ebp - 0xa2], 0x65
mov byte [ebp - 0xa1], 0xd4
mov byte [ebp - 0xa0], 0x96
mov byte [ebp - 0x9f], 0x16
mov byte [ebp - 0x9e], 0x70
mov byte [ebp - 0x9d], 0x40
mov byte [ebp - 0x9c], pe_nt_image_headers32
mov byte [ebp - 0x9b], 0x98
mov byte [ebp - 0x9a], 0xc4
mov byte [ebp - 0x99], 0xfa
mov byte [ebp - 0x98], 0xd7
mov byte [ebp - 0x97], 0xb3
mov byte [ebp - 0x96], 0xf6
mov byte [ebp - 0x95], 0x13
mov byte [ebp - 0x94], 8
mov byte [ebp - 0x93], 0x84
mov byte [ebp - 0x92], 0xb
mov byte [ebp - 0x91], 0x8a
mov byte [ebp - 0x90], 0
mov byte [ebp - 0x8f], 0x5c
mov byte [ebp - 0x8e], 1
mov byte [ebp - 0x8d], 0x8d
and dword [ebp - 8], 0
and dword [ebp - 0xd0], 0
jmp 0x406e14
mov eax, dword [ebp - 8]
inc eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x38
jae 0x406e8b
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0xc4]
lea eax, [eax + eax + 2]
cmp dword [ebp - 8], eax
jne 0x406e46
mov dword [ebp - 0xd0], 0x1c
mov eax, dword [ebp - 8]
add eax, 0x1a
mov dword [ebp - 8], eax
jmp 0x406e0c
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0xc3]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xd0]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x406e74
mov eax, dword [ebp - 0x3c]
add eax, 0x100
mov dword [ebp - 0x3c], eax
jmp 0x406e61
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0xc4]
mov cl, byte [ebp - 0x3c]
mov byte [ebp + eax - 0x118], cl
jmp 0x406e0c
xor eax, eax
inc eax
imul eax, eax, 0xe
mov byte [ebp + eax - 0x118], 0
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040811c
mov edx, dword [ebp - 0xd8]
mov ecx, eax
call fcn.00405478
mov dword [0xa83ff0], eax
lea ecx, [ebp - 0x19c]
call fcn.00403508
and dword [ebp - 0x40], 0
jmp 0x406ed5
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xf
jae 0x406ee8
mov eax, dword [ebp - 0x40]
mov byte [ebp + eax - 0x118], 0
jmp 0x406ece
mov eax, dword [0xa83f38]
cmp eax, dword [ebp - 0x48]
je 0x406efc
mov eax, dword [0xa83ff0]
cmp eax, dword [ebp - 0x48]
jne 0x406f14
mov ecx, dword [ebp + 0xc]
call fcn.00403564
push eax
push dword [ebp + 8]
call fcn.00406624
pop ecx
pop ecx
jmp 0x407457
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x407455
mov eax, dword [ebp - 0x4c]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x407455
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 0x407455
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x74], 0
jbe 0x407455
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x78], 0
je 0x407455
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 0x406fb5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x14]
ja 0x406fb0
mov eax, dword [ebp + 0x10]
dec eax
mov word [ebp - 0xc], ax
jmp 0x407135
mov eax, dword [0xa83ffc]
and eax, 1
jne 0x406fe1
mov eax, dword [0xa83ffc]
or eax, 1
mov dword [0xa83ffc], eax
mov ecx, 0xa84064
call fcn.00403671
push 0x4881fe
call fcn.0046450f
pop ecx
movzx eax, byte [0xa83f34]
test eax, eax
je 0x407047
mov ecx, 0xa84064
call fcn.0040819a
movzx eax, al
test eax, eax
jne 0x407047
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xdc]
push eax
mov ecx, 0xa84064
call fcn.00403649
lea eax, [ebp - 0x120]
push eax
mov ecx, 0xa84064
call fcn.0040363b
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040365e
movzx eax, al
test eax, eax
je 0x407047
lea ecx, [ebp - 0xdc]
call fcn.004081a3
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x407135
mov ecx, 0xa84064
call fcn.004081e7
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x18]
push eax
mov ecx, 0xa84064
call fcn.004081eb
and dword [ebp - 0x20], 0
jmp 0x407079
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 0x407135
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 - 0xe4], eax
cmp dword [ebp - 0xe4], 0
je 0x407130
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x16c]
call fcn.0040811c
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x16c]
call fcn.00405478
mov dword [ebp - 0xe8], eax
movzx eax, byte [0xa83f34]
test eax, eax
je 0x4070f1
mov ecx, 0xa84064
call fcn.0040819a
movzx eax, al
test eax, eax
jne 0x40710e
lea eax, [ebp - 0xe8]
push eax
mov ecx, 0xa84064
call fcn.004081a9
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov byte [0xa83f34], 1
cmp dword [ebp - 0x28], 0xffffffff
jne 0x407125
mov eax, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0x48]
jne 0x407125
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x16c]
call fcn.00403508
jmp 0x407072
cmp dword [ebp + 0x10], 0
jne 0x407155
cmp dword [ebp - 0x28], 0xffffffff
je 0x407155
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 0x407455
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 - 0xf8], eax
mov eax, dword [ebp - 0xf8]
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 0x407450
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 0x407450
mov eax, dword [0xa83ffc]
and eax, 2
jne 0x4071d4
mov eax, dword [0xa83ffc]
or eax, 2
mov dword [0xa83ffc], eax
push 0x7852
call fcn.004019df
pop ecx
mov byte [0xa84004], al
mov byte [ebp - 0x60], 2
mov byte [ebp - 0x5f], 0x6d
mov byte [ebp - 0x5e], 1
mov byte [ebp - 0x5d], 0x6f
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 0x69
mov byte [ebp - 0x5a], 0xd
mov byte [ebp - 0x59], 0x7f
mov byte [ebp - 0x58], 0x65
mov byte [ebp - 0x57], 0xb2
mov byte [ebp - 0x56], 0xfb
mov byte [ebp - 0x55], 2
mov byte [ebp - 0x54], 0xf5
mov byte [ebp - 0x53], 0xf6
mov byte [ebp - 0x52], 0x99
mov byte [ebp - 0x51], 0x29
mov byte [ebp - 0x50], 0xc0
mov byte [ebp - 0x4f], 0x18
mov byte [ebp - 0x4e], 0xec
and dword [ebp - 0x10], 0
and dword [ebp - 0xe0], 0
jmp 0x407235
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x13
jae 0x4072a3
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x60]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x10], eax
jne 0x407264
mov dword [ebp - 0xe0], 0xd
mov eax, dword [ebp - 0x10]
add eax, 0xb
mov dword [ebp - 0x10], eax
jmp 0x40722d
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x5f]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xe0]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x40728f
mov eax, dword [ebp - 0x34]
add eax, 0x100
mov dword [ebp - 0x34], eax
jmp 0x40727c
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x60]
mov cl, byte [ebp - 0x34]
mov byte [ebp + eax - 0xc8], cl
jmp 0x40722d
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0xc8], 0
mov eax, dword [0xa83ffc]
and eax, 4
jne 0x4072e4
mov eax, dword [0xa83ffc]
or eax, 4
mov dword [0xa83ffc], eax
lea eax, [ebp - 0xc8]
push eax
mov ecx, 0xa84048
call fcn.0040811c
push 0x4881ef
call fcn.0046450f
pop ecx
and dword [ebp - 0x38], 0
jmp 0x4072f1
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 4
jae 0x407304
mov eax, dword [ebp - 0x38]
mov byte [ebp + eax - 0xc8], 0
jmp 0x4072ea
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax]
movsx ecx, byte [0xa84004]
cmp eax, ecx
je 0x407324
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x40730a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x13c]
call fcn.0040853d
push 0xa84048
lea ecx, [ebp - 0x13c]
call fcn.0040814b
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00403c38
push dword [eax]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00403c24
push dword [eax]
lea ecx, [ebp - 0x184]
call fcn.00408566
lea eax, [ebp - 0x184]
push eax
call fcn.0040561a
pop ecx
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x407407
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x154]
call fcn.0040811c
lea edx, [ebp - 0xf4]
lea ecx, [ebp - 0x154]
call fcn.00405526
movzx eax, al
test eax, eax
je 0x4073de
push 0
push dword [ebp - 0xf4]
push 0
push dword [ebp - 0xcc]
call fcn.00406a59
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4073fa
push 1
push 0
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0xcc]
call fcn.00406a59
add esp, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x154]
call fcn.00403508
jmp 0x40743a
cmp dword [ebp + 0x10], 0
jne 0x40741d
mov ecx, dword [ebp + 0xc]
call fcn.00403564
mov dword [ebp - 0xd4], eax
jmp 0x407427
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0xd4], eax
push dword [ebp - 0xd4]
push dword [ebp + 8]
call fcn.00406624
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x184]
call fcn.004033e0
lea ecx, [ebp - 0x13c]
call fcn.00403508
mov eax, dword [ebp - 0x14]
jmp 0x407457
xor eax, eax
mov esp, ebp
pop ebp
ret