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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
cmp dword [ebp + 0x10], 0
jbe 0x405c24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x405c24
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00405879
pop ecx
pop ecx
jmp 0x406559
cmp dword [ebp + 0x10], 0
jne 0x406040
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.00404a68
mov dword [ebp - 0x50], eax
cmp dword [0xaa8f58], 0
jne 0x406014
mov dword [ebp - 0xe4], 0x2e42
lea eax, [ebp - 0xe4]
push eax
call fcn.00405785
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0xb0], 1
mov byte [ebp - 0xaf], 0x66
mov byte [ebp - 0xae], 8
mov byte [ebp - 0xad], 0x72
mov byte [ebp - 0xac], 0x1e
mov byte [ebp - 0xab], 0xe6
mov byte [ebp - 0xaa], 0xc0
mov byte [ebp - 0xa9], 0x12
mov byte [ebp - 0xa8], 0x27
mov byte [ebp - 0xa7], 0xbc
mov byte [ebp - 0xa6], 0xb1
mov byte [ebp - 0xa5], 0x23
mov byte [ebp - 0xa4], 0x8d
mov byte [ebp - 0xa3], 0xfe
mov byte [ebp - 0xa2], 0xcc
mov byte [ebp - 0xa1], 0x6d
mov byte [ebp - 0xa0], 0x1d
mov byte [ebp - 0x9f], 0x45
mov byte [ebp - 0x9e], 0x56
mov byte [ebp - 0x9d], 0xf4
mov byte [ebp - 0x9c], 0x5b
mov byte [ebp - 0x9b], 0x50
mov byte [ebp - 0x9a], 0x23
mov byte [ebp - 0x99], 0xa
mov byte [ebp - 0x98], 0xe2
mov byte [ebp - 0x97], 0xa5
mov byte [ebp - 0x96], 0xac
mov byte [ebp - 0x95], 0x15
mov byte [ebp - 0x94], 0xe
mov byte [ebp - 0x93], 0x7a
mov byte [ebp - 0x92], 0x62
mov byte [ebp - 0x91], 0x92
mov byte [ebp - 0x90], 0xf8
mov byte [ebp - 0x8f], 0xd5
mov byte [ebp - 0x8e], 9
mov byte [ebp - 0x8d], 0x73
mov byte [ebp - 0x8c], 6
mov byte [ebp - 0x8b], 0x7a
mov byte [ebp - 0x8a], 5
mov byte [ebp - 0x89], 0x7b
mov byte [ebp - 0x88], 0xc
mov byte [ebp - 0x87], 0x62
mov byte [ebp - 0x86], 0
mov byte [ebp - 0x85], 0x54
mov byte [ebp - 0x84], 2
mov byte [ebp - 0x83], 0x83
mov byte [ebp - 0x82], 3
mov byte [ebp - 0x81], 0x67
mov byte [ebp - 0x80], 0xa
mov byte [ebp - 0x7f], 0x58
mov byte [ebp - 0x7e], 0xb
mov byte [ebp - 0x7d], 0x8d
mov byte [ebp - 0x7c], 7
mov byte [ebp - 0x7b], 0x80
mov byte [ebp - 0x7a], 4
mov byte [ebp - 0x79], 0x7e
and dword [ebp - 4], 0
and dword [ebp - 0xc0], 0
jmp 0x405deb
mov eax, dword [ebp - 4]
inc eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x38
jae 0x405e62
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0xb0]
lea eax, [eax + eax + 2]
cmp dword [ebp - 4], eax
jne 0x405e1d
mov dword [ebp - 0xc0], 0x1e
mov eax, dword [ebp - 4]
add eax, 0x1c
mov dword [ebp - 4], eax
jmp 0x405de3
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0xaf]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc0]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x405e4b
mov eax, dword [ebp - 0x3c]
add eax, 0x100
mov dword [ebp - 0x3c], eax
jmp 0x405e38
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0xb0]
mov cl, byte [ebp - 0x3c]
mov byte [ebp + eax - 0xf4], cl
jmp 0x405de3
xor eax, eax
inc eax
imul eax, eax, 0xd
mov byte [ebp + eax - 0xf4], 0
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.004076f9
mov edx, dword [ebp - 0xcc]
mov ecx, eax
call fcn.00404a68
mov dword [0xaa8f58], eax
lea ecx, [ebp - 0x1a0]
call fcn.00402b13
and dword [ebp - 0x54], 0
jmp 0x405eac
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xe
jae 0x405ebf
mov eax, dword [ebp - 0x54]
mov byte [ebp + eax - 0xf4], 0
jmp 0x405ea5
mov byte [ebp - 0x78], 0xb
mov byte [ebp - 0x77], 0x74
mov byte [ebp - 0x76], 5
mov byte [ebp - 0x75], 0x68
mov byte [ebp - 0x74], 0xa
mov byte [ebp - 0x73], 0x6a
mov byte [ebp - 0x72], 3
mov byte [ebp - 0x71], 0x68
mov byte [ebp - 0x70], 6
mov byte [ebp - 0x6f], 0x59
mov byte [ebp - 0x6e], 1
mov byte [ebp - 0x6d], 0x7d
mov byte [ebp - 0x6c], 0xd
mov byte [ebp - 0x6b], 0x64
mov byte [ebp - 0x6a], 8
mov byte [ebp - 0x69], 0x7e
mov byte [ebp - 0x68], 4
mov byte [ebp - 0x67], 0x85
mov byte [ebp - 0x66], 0xc
mov byte [ebp - 0x65], 0x86
mov byte [ebp - 0x64], 9
mov byte [ebp - 0x63], 0x78
mov byte [ebp - 0x62], 7
mov byte [ebp - 0x61], 0x89
mov byte [ebp - 0x60], 2
mov byte [ebp - 0x5f], 0xb4
mov byte [ebp - 0x5e], 2
mov byte [ebp - 0x5d], 0x7e
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x5b], 0x5e
and dword [ebp - 8], 0
and dword [ebp - 0xbc], 0
jmp 0x405f4c
mov eax, dword [ebp - 8]
inc eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1e
jae 0x405fb7
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x78]
lea eax, [eax + eax + 2]
cmp dword [ebp - 8], eax
jne 0x405f78
mov dword [ebp - 0xbc], 2
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
jmp 0x405f44
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x77]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xbc]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x405fa3
mov eax, dword [ebp - 0x44]
add eax, 0x100
mov dword [ebp - 0x44], eax
jmp 0x405f90
mov eax, dword [ebp - 8]
movzx eax, byte [ebp + eax - 0x78]
mov cl, byte [ebp - 0x44]
mov byte [ebp + eax - 0x104], cl
jmp 0x405f44
xor eax, eax
inc eax
imul eax, eax, 0xe
mov byte [ebp + eax - 0x104], 0
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x188]
call fcn.004076f9
mov edx, dword [ebp - 0xcc]
mov ecx, eax
call fcn.00404a68
mov dword [0xaa9010], eax
lea ecx, [ebp - 0x188]
call fcn.00402b13
and dword [ebp - 0x48], 0
jmp 0x406001
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xf
jae 0x406014
mov eax, dword [ebp - 0x48]
mov byte [ebp + eax - 0x104], 0
jmp 0x405ffa
mov eax, dword [0xaa8f58]
cmp eax, dword [ebp - 0x50]
je 0x406028
mov eax, dword [0xaa9010]
cmp eax, dword [ebp - 0x50]
jne 0x406040
mov ecx, dword [ebp + 0xc]
call fcn.00402b6f
push eax
push dword [ebp + 8]
call fcn.00405879
pop ecx
pop ecx
jmp 0x406559
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x406557
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x406557
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x58]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
jne 0x406557
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x74], 0
jbe 0x406557
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x78], 0
je 0x406557
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 - 0x20], 0xffffffff
cmp dword [ebp + 0x10], 0
jbe 0x4060e1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x14]
ja 0x4060dc
mov eax, dword [ebp + 0x10]
dec eax
mov word [ebp - 0xc], ax
jmp 0x406261
mov eax, dword [0xaa901c]
and eax, 1
jne 0x40610d
mov eax, dword [0xaa901c]
or eax, 1
mov dword [0xaa901c], eax
mov ecx, 0xaa9084
call fcn.00402c7c
push 0x4aec80
call fcn.0048af8f
pop ecx
movzx eax, byte [0xaa8f54]
test eax, eax
je 0x406173
mov ecx, 0xaa9084
call fcn.00407777
movzx eax, al
test eax, eax
jne 0x406173
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc8]
push eax
mov ecx, 0xaa9084
call fcn.00402c54
lea eax, [ebp - 0x108]
push eax
mov ecx, 0xaa9084
call fcn.00402c46
push eax
lea ecx, [ebp - 0xc8]
call fcn.00402c69
movzx eax, al
test eax, eax
je 0x406173
lea ecx, [ebp - 0xc8]
call fcn.00407780
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x406261
mov ecx, 0xaa9084
call fcn.004077c4
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x18]
push eax
mov ecx, 0xaa9084
call fcn.004077c8
and dword [ebp - 0x28], 0
jmp 0x4061a5
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 0x18]
jae 0x406261
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x20]
mov eax, dword [ebp - 0x28]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x40625c
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x158]
call fcn.004076f9
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x158]
call fcn.00404a68
mov dword [ebp - 0xd0], eax
movzx eax, byte [0xaa8f54]
test eax, eax
je 0x40621d
mov ecx, 0xaa9084
call fcn.00407777
movzx eax, al
test eax, eax
jne 0x40623a
lea eax, [ebp - 0xd0]
push eax
mov ecx, 0xaa9084
call fcn.00407786
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov byte [0xaa8f54], 1
cmp dword [ebp - 0x20], 0xffffffff
jne 0x406251
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0x50]
jne 0x406251
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x158]
call fcn.00402b13
jmp 0x40619e
cmp dword [ebp + 0x10], 0
jne 0x406281
cmp dword [ebp - 0x20], 0xffffffff
je 0x406281
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x20]
mov ax, word [ecx + eax*2]
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
cmp eax, 0xffff
je 0x406557
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 - 0xdc], eax
mov eax, dword [ebp - 0xdc]
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 0x406552
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 0x406552
mov eax, dword [0xaa901c]
and eax, 2
jne 0x406300
mov eax, dword [0xaa901c]
or eax, 2
mov dword [0xaa901c], eax
push 0x27a8
call fcn.004017ec
pop ecx
mov byte [0xaa9024], al
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x37], 0x65
mov byte [ebp - 0x36], 3
mov byte [ebp - 0x35], 0x8f
mov byte [ebp - 0x34], 0xef
mov byte [ebp - 0x33], 1
mov byte [ebp - 0x32], 0x6f
mov byte [ebp - 0x31], 2
mov byte [ebp - 0x30], 0x71
and dword [ebp - 0x10], 0
and dword [ebp - 0xd8], 0
jmp 0x406339
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 9
jae 0x4063a5
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x38]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x10], eax
jne 0x406366
mov dword [ebp - 0xd8], 3
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x406331
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x37]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xd8]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x406391
mov eax, dword [ebp - 0x4c]
add eax, 0x100
mov dword [ebp - 0x4c], eax
jmp 0x40637e
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax - 0x38]
mov cl, byte [ebp - 0x4c]
mov byte [ebp + eax - 0xb4], cl
jmp 0x406331
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0xb4], 0
mov eax, dword [0xaa901c]
and eax, 4
jne 0x4063e6
mov eax, dword [0xaa901c]
or eax, 4
mov dword [0xaa901c], eax
lea eax, [ebp - 0xb4]
push eax
mov ecx, 0xaa9068
call fcn.004076f9
push 0x4aec71
call fcn.0048af8f
pop ecx
and dword [ebp - 0x40], 0
jmp 0x4063f3
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 4
jae 0x406406
mov eax, dword [ebp - 0x40]
mov byte [ebp + eax - 0xb4], 0
jmp 0x4063ec
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax]
movsx ecx, byte [0xaa9024]
cmp eax, ecx
je 0x406426
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x40640c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x128]
call fcn.00407b2f
push 0xaa9068
lea ecx, [ebp - 0x128]
call fcn.00407728
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.00403233
push dword [eax]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x128]
call fcn.0040321f
push dword [eax]
lea ecx, [ebp - 0x170]
call fcn.00407b58
lea eax, [ebp - 0x170]
push eax
call fcn.00404bd8
pop ecx
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x406509
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x140]
call fcn.004076f9
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0x140]
call fcn.00404b16
movzx eax, al
test eax, eax
je 0x4064e0
push 0
push dword [ebp - 0xe0]
push 0
push dword [ebp - 0xb8]
call fcn.00405bf9
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x4064fc
push 1
push 0
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0xb8]
call fcn.00405bf9
add esp, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x140]
call fcn.00402b13
jmp 0x40653c
cmp dword [ebp + 0x10], 0
jne 0x40651f
mov ecx, dword [ebp + 0xc]
call fcn.00402b6f
mov dword [ebp - 0xd4], eax
jmp 0x406529
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0xd4], eax
push dword [ebp - 0xd4]
push dword [ebp + 8]
call fcn.00405879
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x170]
call fcn.004029eb
lea ecx, [ebp - 0x128]
call fcn.00402b13
mov eax, dword [ebp - 0x14]
jmp 0x406559
xor eax, eax
mov esp, ebp
pop ebp
ret