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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
cmp dword [ebp + 0x10], 0
jbe 0x406b88
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x406b88
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00406737
pop ecx
pop ecx
jmp 0x407483
cmp dword [ebp + 0x10], 0
jne 0x406f9d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.004052f9
mov dword [ebp - 0x4c], eax
cmp dword [0xa9bf78], 0
jne 0x406f71
mov dword [ebp - 0xd8], 0xd0e8
lea eax, [ebp - 0xd8]
push eax
call fcn.00406648
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0xac], 0xa
mov byte [ebp - 0xab], 0x46
mov byte [ebp - 0xaa], 5
mov byte [ebp - 0xa9], 0x75
mov byte [ebp - 0xa8], 0xc
mov byte [ebp - 0xa7], 0x5c
mov byte [ebp - 0xa6], 9
mov byte [ebp - 0xa5], 0x75
mov byte [ebp - 0xa4], 3
mov byte [ebp - 0xa3], 0x5f
mov byte [ebp - 0xa2], 2
mov byte [ebp - 0xa1], 0x7f
mov byte [ebp - 0xa0], 1
mov byte [ebp - 0x9f], 0x72
mov byte [ebp - 0x9e], 0xb
mov byte [ebp - 0x9d], 0x87
mov byte [ebp - 0x9c], 0
mov byte [ebp - 0x9b], 0x58
mov byte [ebp - 0x9a], 6
mov byte [ebp - 0x99], 0x86
mov byte [ebp - 0x98], 4
mov byte [ebp - 0x97], 0x7a
mov byte [ebp - 0x96], 0x1e
mov byte [ebp - 0x95], 0x88
mov byte [ebp - 0x94], 0xcb
mov byte [ebp - 0x93], 0x2b
mov byte [ebp - 0x92], 2
mov byte [ebp - 0x91], 0x47
mov byte [ebp - 0x90], 0xc
mov byte [ebp - 0x8f], 0x2e
mov byte [ebp - 0x8e], 0xe5
mov byte [ebp - 0x8d], 0x1a
mov byte [ebp - 0x8c], 0x63
mov byte [ebp - 0x8b], 0xff
mov byte [ebp - 0x8a], 0x3a
mov byte [ebp - 0x89], 0xb
mov byte [ebp - 0x88], 0
mov byte [ebp - 0x87], 0x16
mov byte [ebp - 0x86], 0x61
mov byte [ebp - 0x85], 0x8a
mov byte [ebp - 0x84], 0xe4
mov byte [ebp - 0x83], 0x88
mov byte [ebp - 0x82], 0xf2
mov byte [ebp - 0x81], 0x62
mov byte [ebp - 0x80], 0xfe
mov byte [ebp - 0x7f], 0x94
mov byte [ebp - 0x7e], 0xfe
mov byte [ebp - 0x7d], 0xeb
mov byte [ebp - 0x7c], 0x94
mov byte [ebp - 0x7b], 0x79
mov byte [ebp - 0x7a], 0x98
mov byte [ebp - 0x79], 0x81
mov byte [ebp - 0x78], 8
mov byte [ebp - 0x77], 0x86
mov byte [ebp - 0x76], 7
mov byte [ebp - 0x75], 0x82
and dword [ebp - 0xc], 0
and dword [ebp - 0xbc], 0
jmp 0x406d43
mov eax, dword [ebp - 0xc]
inc eax
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x38
jae 0x406dba
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0xac]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0xc], eax
jne 0x406d75
mov dword [ebp - 0xbc], 0x1e
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov dword [ebp - 0xc], eax
jmp 0x406d3b
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0xab]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xbc]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x406da3
mov eax, dword [ebp - 0x38]
add eax, 0x100
mov dword [ebp - 0x38], eax
jmp 0x406d90
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0xac]
mov cl, byte [ebp - 0x38]
mov byte [ebp + eax - 0xf0], cl
jmp 0x406d3b
xor eax, eax
inc eax
imul eax, eax, 0xd
mov byte [ebp + eax - 0xf0], 0
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004082a2
mov edx, dword [ebp - 0xcc]
mov ecx, eax
call fcn.004052f9
mov dword [0xa9bf78], eax
lea ecx, [ebp - 0x19c]
call fcn.004033a4
and dword [ebp - 0x50], 0
jmp 0x406e04
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xe
jae 0x406e17
mov eax, dword [ebp - 0x50]
mov byte [ebp + eax - 0xf0], 0
jmp 0x406dfd
mov byte [ebp - 0x74], 7
mov byte [ebp - 0x73], 0x73
mov byte [ebp - 0x72], 0xc
mov byte [ebp - 0x71], 0x76
mov byte [ebp - 0x70], 0xb
mov byte [ebp - 0x6f], 0x78
mov byte [ebp - 0x6e], 1
mov byte [ebp - 0x6d], 0x79
mov byte [ebp - 0x6c], 8
mov byte [ebp - 0x6b], 0x78
mov byte [ebp - 0x6a], 9
mov byte [ebp - 0x69], 0x6e
mov byte [ebp - 0x68], 0xa
mov byte [ebp - 0x67], 0x72
mov byte [ebp - 0x66], 6
mov byte [ebp - 0x65], 0x5f
mov byte [ebp - 0x64], 3
mov byte [ebp - 0x63], 0x96
mov byte [ebp - 0x62], 0x15
mov byte [ebp - 0x61], 3
mov byte [ebp - 0x60], 0x72
mov byte [ebp - 0x5f], 0xd
mov byte [ebp - 0x5e], 0x6a
mov byte [ebp - 0x5d], 0
mov byte [ebp - 0x5c], 0x58
mov byte [ebp - 0x5b], 5
mov byte [ebp - 0x5a], 0x7c
mov byte [ebp - 0x59], 2
mov byte [ebp - 0x58], 0x7e
mov byte [ebp - 0x57], 4
mov byte [ebp - 0x56], 0x8f
and dword [ebp - 4], 0
and dword [ebp - 0xb8], 0
jmp 0x406ea8
mov eax, dword [ebp - 4]
inc eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1f
jae 0x406f14
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0x74]
lea eax, [eax + eax + 2]
cmp dword [ebp - 4], eax
jne 0x406ed5
mov dword [ebp - 0xb8], 3
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
jmp 0x406ea0
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x73]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xb8]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jge 0x406f00
mov eax, dword [ebp - 0x40]
add eax, 0x100
mov dword [ebp - 0x40], eax
jmp 0x406eed
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x74]
mov cl, byte [ebp - 0x40]
mov byte [ebp + eax - 0x100], cl
jmp 0x406ea0
xor eax, eax
inc eax
imul eax, eax, 0xe
mov byte [ebp + eax - 0x100], 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x184]
call fcn.004082a2
mov edx, dword [ebp - 0xcc]
mov ecx, eax
call fcn.004052f9
mov dword [0xa9c030], eax
lea ecx, [ebp - 0x184]
call fcn.004033a4
and dword [ebp - 0x44], 0
jmp 0x406f5e
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xf
jae 0x406f71
mov eax, dword [ebp - 0x44]
mov byte [ebp + eax - 0x100], 0
jmp 0x406f57
mov eax, dword [0xa9bf78]
cmp eax, dword [ebp - 0x4c]
je 0x406f85
mov eax, dword [0xa9c030]
cmp eax, dword [ebp - 0x4c]
jne 0x406f9d
mov ecx, dword [ebp + 0xc]
call fcn.00403400
push eax
push dword [ebp + 8]
call fcn.00406737
pop ecx
pop ecx
jmp 0x407483
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x407481
mov eax, dword [ebp - 0x54]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x407481
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 0x407481
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x74], 0
jbe 0x407481
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x78], 0
je 0x407481
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 0x40703e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x14]
ja 0x407039
mov eax, dword [ebp + 0x10]
dec eax
mov word [ebp - 8], ax
jmp 0x4071be
mov eax, dword [0xa9c054]
and eax, 1
jne 0x40706a
mov eax, dword [0xa9c054]
or eax, 1
mov dword [0xa9c054], eax
mov ecx, 0xa9c0a4
call fcn.0040350d
push 0x4a1ed0
call fcn.0047e1cf
pop ecx
movzx eax, byte [0xa9bf74]
test eax, eax
je 0x4070d0
mov ecx, 0xa9c0a4
call fcn.00408325
movzx eax, al
test eax, eax
jne 0x4070d0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc4]
push eax
mov ecx, 0xa9c0a4
call fcn.004034e5
lea eax, [ebp - 0x104]
push eax
mov ecx, 0xa9c0a4
call fcn.004034d7
push eax
lea ecx, [ebp - 0xc4]
call fcn.004034fa
movzx eax, al
test eax, eax
je 0x4070d0
lea ecx, [ebp - 0xc4]
call fcn.0040832e
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4071be
mov ecx, 0xa9c0a4
call fcn.00408372
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x18]
push eax
mov ecx, 0xa9c0a4
call fcn.00408376
and dword [ebp - 0x28], 0
jmp 0x407102
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 0x4071be
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 - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x4071b9
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x154]
call fcn.004082a2
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x154]
call fcn.004052f9
mov dword [ebp - 0xc8], eax
movzx eax, byte [0xa9bf74]
test eax, eax
je 0x40717a
mov ecx, 0xa9c0a4
call fcn.00408325
movzx eax, al
test eax, eax
jne 0x407197
lea eax, [ebp - 0xc8]
push eax
mov ecx, 0xa9c0a4
call fcn.00408334
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov byte [0xa9bf74], 1
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4071ae
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp - 0x4c]
jne 0x4071ae
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x154]
call fcn.004033a4
jmp 0x4070fb
cmp dword [ebp + 0x10], 0
jne 0x4071de
cmp dword [ebp - 0x24], 0xffffffff
je 0x4071de
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 0x407481
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 - 0xdc], eax
mov eax, dword [ebp - 0xdc]
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 0x40747c
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 0x40747c
mov eax, dword [0xa9c054]
and eax, 2
jne 0x40725d
mov eax, dword [0xa9c054]
or eax, 2
mov dword [0xa9c054], eax
push 0x11405
call fcn.004019b1
pop ecx
mov byte [0xa9c05c], al
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x33], 0x65
mov byte [ebp - 0x32], 1
mov byte [ebp - 0x31], 0x6f
mov byte [ebp - 0x30], 2
mov byte [ebp - 0x2f], 0x71
and dword [ebp - 0x20], 0
and dword [ebp - 0xd4], 0
jmp 0x40728a
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 6
jae 0x4072cf
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x33]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xd4]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jge 0x4072bb
mov eax, dword [ebp - 0x48]
add eax, 0x100
mov dword [ebp - 0x48], eax
jmp 0x4072a8
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x34]
mov cl, byte [ebp - 0x48]
mov byte [ebp + eax - 0xb0], cl
jmp 0x407282
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0xb0], 0
mov eax, dword [0xa9c054]
and eax, 4
jne 0x407310
mov eax, dword [0xa9c054]
or eax, 4
mov dword [0xa9c054], eax
lea eax, [ebp - 0xb0]
push eax
mov ecx, 0xa9c03c
call fcn.004082a2
push 0x4a1ec1
call fcn.0047e1cf
pop ecx
and dword [ebp - 0x3c], 0
jmp 0x40731d
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jae 0x407330
mov eax, dword [ebp - 0x3c]
mov byte [ebp + eax - 0xb0], 0
jmp 0x407316
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax]
movsx ecx, byte [0xa9c05c]
cmp eax, ecx
je 0x407350
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x407336
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x124]
call fcn.004086dd
push 0xa9c03c
lea ecx, [ebp - 0x124]
call fcn.004082d1
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x124]
call fcn.00403ac4
push dword [eax]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x124]
call fcn.00403ab0
push dword [eax]
lea ecx, [ebp - 0x16c]
call fcn.00408706
lea eax, [ebp - 0x16c]
push eax
call fcn.004054d0
pop ecx
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
je 0x407433
push dword [ebp - 0x18]
lea ecx, [ebp - 0x13c]
call fcn.004082a2
lea edx, [ebp - 0xe0]
lea ecx, [ebp - 0x13c]
call fcn.004053a7
movzx eax, al
test eax, eax
je 0x40740a
push 0
push dword [ebp - 0xe0]
push 0
push dword [ebp - 0xb4]
call fcn.00406b5d
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x407426
push 1
push 0
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0xb4]
call fcn.00406b5d
add esp, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x13c]
call fcn.004033a4
jmp 0x407466
cmp dword [ebp + 0x10], 0
jne 0x407449
mov ecx, dword [ebp + 0xc]
call fcn.00403400
mov dword [ebp - 0xd0], eax
jmp 0x407453
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0xd0], eax
push dword [ebp - 0xd0]
push dword [ebp + 8]
call fcn.00406737
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x16c]
call fcn.0040327c
lea ecx, [ebp - 0x124]
call fcn.004033a4
mov eax, dword [ebp - 0x14]
jmp 0x407483
xor eax, eax
mov esp, ebp
pop ebp
ret