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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
cmp dword [ebp + 0x10], 0
jbe 0x406374
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x406374
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00406025
pop ecx
pop ecx
jmp 0x406c23
cmp dword [ebp + 0x10], 0
jne 0x40673d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
call fcn.00404e0f
mov dword [ebp - 0x4c], eax
cmp dword [0xaa9858], 0
jne 0x406711
mov dword [ebp - 0xd0], 0x69c3
lea eax, [ebp - 0xd0]
push eax
call fcn.00405ebd
pop ecx
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0xa4], 7
mov byte [ebp - 0xa3], 0x6a
mov byte [ebp - 0xa2], 4
mov byte [ebp - 0xa1], 0x68
mov byte [ebp - 0xa0], 0xc
mov byte [ebp - 0x9f], 0x5c
mov byte [ebp - 0x9e], 2
mov byte [ebp - 0x9d], 0x7b
mov byte [ebp - 0x9c], 0
mov byte [ebp - 0x9b], 0x50
mov byte [ebp - 0x9a], 0xa
mov byte [ebp - 0x99], 0x50
mov byte [ebp - 0x98], 1
mov byte [ebp - 0x97], 0x72
mov byte [ebp - 0x96], 5
mov byte [ebp - 0x95], 0x81
mov byte [ebp - 0x94], 0x13
mov byte [ebp - 0x93], 0xa0
mov byte [ebp - 0x92], 0x2d
mov byte [ebp - 0x91], 0xd5
mov byte [ebp - 0x90], 0x21
mov byte [ebp - 0x8f], 0xe6
mov byte [ebp - 0x8e], 0x4a
mov byte [ebp - 0x8d], 0xf7
mov byte [ebp - 0x8c], 0x9a
mov byte [ebp - 0x8b], 0x1f
mov byte [ebp - 0x8a], 0xf3
mov byte [ebp - 0x89], 0x42
mov byte [ebp - 0x88], 0x25
mov byte [ebp - 0x87], 0x7d
mov byte [ebp - 0x86], 0x21
mov byte [ebp - 0x85], 0x1e
mov byte [ebp - 0x84], 0x99
mov byte [ebp - 0x83], 0x46
mov byte [ebp - 0x82], 0x94
mov byte [ebp - 0x81], 3
mov byte [ebp - 0x80], 0x67
mov byte [ebp - 0x7f], 9
mov byte [ebp - 0x7e], 0x81
mov byte [ebp - 0x7d], 8
mov byte [ebp - 0x7c], 0x84
mov byte [ebp - 0x7b], 6
mov byte [ebp - 0x7a], 0x8a
mov byte [ebp - 0x79], 0xb
mov byte [ebp - 0x78], 0x91
and dword [ebp - 0xc], 0
and dword [ebp - 0xb4], 0
jmp 0x4064eb
mov eax, dword [ebp - 0xc]
inc eax
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2d
jae 0x406562
xor eax, eax
inc eax
imul eax, eax, 0
movzx eax, byte [ebp + eax - 0xa4]
lea eax, [eax + eax + 2]
cmp dword [ebp - 0xc], eax
jne 0x40651d
mov dword [ebp - 0xb4], 0x13
mov eax, dword [ebp - 0xc]
add eax, 0x11
mov dword [ebp - 0xc], eax
jmp 0x4064e3
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0xa3]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xb4]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x40654b
mov eax, dword [ebp - 0x38]
add eax, 0x100
mov dword [ebp - 0x38], eax
jmp 0x406538
mov eax, dword [ebp - 0xc]
movzx eax, byte [ebp + eax - 0xa4]
mov cl, byte [ebp - 0x38]
mov byte [ebp + eax - 0xe8], cl
jmp 0x4064e3
xor eax, eax
inc eax
imul eax, eax, 0xd
mov byte [ebp + eax - 0xe8], 0
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x194]
call fcn.00407908
mov edx, dword [ebp - 0xc4]
mov ecx, eax
call fcn.00404e0f
mov dword [0xaa9858], eax
lea ecx, [ebp - 0x194]
call fcn.00402eba
and dword [ebp - 0x50], 0
jmp 0x4065ac
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xe
jae 0x4065bf
mov eax, dword [ebp - 0x50]
mov byte [ebp + eax - 0xe8], 0
jmp 0x4065a5
mov byte [ebp - 0x74], 0xa
mov byte [ebp - 0x73], 0x66
mov byte [ebp - 0x72], 1
mov byte [ebp - 0x71], 0x75
mov byte [ebp - 0x70], 8
mov byte [ebp - 0x6f], 0x74
mov byte [ebp - 0x6e], 9
mov byte [ebp - 0x6d], 0x6a
mov byte [ebp - 0x6c], 4
mov byte [ebp - 0x6b], 0x7d
mov byte [ebp - 0x6a], 0xd
mov byte [ebp - 0x69], 0x62
mov byte [ebp - 0x68], 0xb
mov byte [ebp - 0x67], 0x80
mov byte [ebp - 0x66], 0xc
mov byte [ebp - 0x65], 0x82
mov byte [ebp - 0x64], 5
mov byte [ebp - 0x63], 0x76
mov byte [ebp - 0x62], 0
mov byte [ebp - 0x61], 0x56
mov byte [ebp - 0x60], 2
mov byte [ebp - 0x5f], 0x7a
mov byte [ebp - 0x5e], 1
mov byte [ebp - 0x5d], 3
mov byte [ebp - 0x5c], 0x78
mov byte [ebp - 0x5b], 7
mov byte [ebp - 0x5a], 0x8b
mov byte [ebp - 0x59], 6
mov byte [ebp - 0x58], 0x6b
and dword [ebp - 4], 0
and dword [ebp - 0xb0], 0
jmp 0x406648
mov eax, dword [ebp - 4]
inc eax
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1d
jae 0x4066b4
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 0x406675
mov dword [ebp - 0xb0], 1
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jmp 0x406640
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x73]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xb0]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jge 0x4066a0
mov eax, dword [ebp - 0x40]
add eax, 0x100
mov dword [ebp - 0x40], eax
jmp 0x40668d
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x74]
mov cl, byte [ebp - 0x40]
mov byte [ebp + eax - 0xf8], cl
jmp 0x406640
xor eax, eax
inc eax
imul eax, eax, 0xe
mov byte [ebp + eax - 0xf8], 0
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x17c]
call fcn.00407908
mov edx, dword [ebp - 0xc4]
mov ecx, eax
call fcn.00404e0f
mov dword [0xaa9910], eax
lea ecx, [ebp - 0x17c]
call fcn.00402eba
and dword [ebp - 0x44], 0
jmp 0x4066fe
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xf
jae 0x406711
mov eax, dword [ebp - 0x44]
mov byte [ebp + eax - 0xf8], 0
jmp 0x4066f7
mov eax, dword [0xaa9858]
cmp eax, dword [ebp - 0x4c]
je 0x406725
mov eax, dword [0xaa9910]
cmp eax, dword [ebp - 0x4c]
jne 0x40673d
mov ecx, dword [ebp + 0xc]
call fcn.00402f16
push eax
push dword [ebp + 8]
call fcn.00406025
pop ecx
pop ecx
jmp 0x406c23
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x406c21
mov eax, dword [ebp - 0x54]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x406c21
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 0x406c21
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x74], 0
jbe 0x406c21
push 8
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x78], 0
je 0x406c21
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 0x4067de
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x14]
ja 0x4067d9
mov eax, dword [ebp + 0x10]
dec eax
mov word [ebp - 8], ax
jmp 0x40695e
mov eax, dword [0xaa9934]
and eax, 1
jne 0x40680a
mov eax, dword [0xaa9934]
or eax, 1
mov dword [0xaa9934], eax
mov ecx, 0xaa9984
call fcn.00403023
push 0x4ae910
call fcn.0048ac1f
pop ecx
movzx eax, byte [0xaa9854]
test eax, eax
je 0x406870
mov ecx, 0xaa9984
call fcn.00407986
movzx eax, al
test eax, eax
jne 0x406870
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xbc]
push eax
mov ecx, 0xaa9984
call fcn.00402ffb
lea eax, [ebp - 0xfc]
push eax
mov ecx, 0xaa9984
call fcn.00402fed
push eax
lea ecx, [ebp - 0xbc]
call fcn.00403010
movzx eax, al
test eax, eax
je 0x406870
lea ecx, [ebp - 0xbc]
call fcn.0040798f
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40695e
mov ecx, 0xaa9984
call fcn.004079d3
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x18]
push eax
mov ecx, 0xaa9984
call fcn.004079d7
and dword [ebp - 0x28], 0
jmp 0x4068a2
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 0x40695e
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 - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x406959
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00407908
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14c]
call fcn.00404e0f
mov dword [ebp - 0xc0], eax
movzx eax, byte [0xaa9854]
test eax, eax
je 0x40691a
mov ecx, 0xaa9984
call fcn.00407986
movzx eax, al
test eax, eax
jne 0x406937
lea eax, [ebp - 0xc0]
push eax
mov ecx, 0xaa9984
call fcn.00407995
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov byte [0xaa9854], 1
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40694e
mov eax, dword [ebp - 0xc0]
cmp eax, dword [ebp - 0x4c]
jne 0x40694e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x14c]
call fcn.00402eba
jmp 0x40689b
cmp dword [ebp + 0x10], 0
jne 0x40697e
cmp dword [ebp - 0x24], 0xffffffff
je 0x40697e
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 0x406c21
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 - 0xd4], eax
mov eax, dword [ebp - 0xd4]
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 0x406c1c
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 0x406c1c
mov eax, dword [0xaa9934]
and eax, 2
jne 0x4069fd
mov eax, dword [0xaa9934]
or eax, 2
mov dword [0xaa9934], eax
push 0x5631
call fcn.00401871
pop ecx
mov byte [0xaa993c], al
mov byte [ebp - 0x34], 2
mov byte [ebp - 0x33], 0x6d
mov byte [ebp - 0x32], 0
mov byte [ebp - 0x31], 0x67
mov byte [ebp - 0x30], 1
mov byte [ebp - 0x2f], 0x71
and dword [ebp - 0x20], 0
and dword [ebp - 0xcc], 0
jmp 0x406a2a
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 6
jae 0x406a6f
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x33]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xcc]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jge 0x406a5b
mov eax, dword [ebp - 0x48]
add eax, 0x100
mov dword [ebp - 0x48], eax
jmp 0x406a48
mov eax, dword [ebp - 0x20]
movzx eax, byte [ebp + eax - 0x34]
mov cl, byte [ebp - 0x48]
mov byte [ebp + eax - 0xa8], cl
jmp 0x406a22
xor eax, eax
inc eax
imul eax, eax, 3
mov byte [ebp + eax - 0xa8], 0
mov eax, dword [0xaa9934]
and eax, 4
jne 0x406ab0
mov eax, dword [0xaa9934]
or eax, 4
mov dword [0xaa9934], eax
lea eax, [ebp - 0xa8]
push eax
mov ecx, 0xaa991c
call fcn.00407908
push 0x4ae901
call fcn.0048ac1f
pop ecx
and dword [ebp - 0x3c], 0
jmp 0x406abd
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jae 0x406ad0
mov eax, dword [ebp - 0x3c]
mov byte [ebp + eax - 0xa8], 0
jmp 0x406ab6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movsx eax, byte [eax]
movsx ecx, byte [0xaa993c]
cmp eax, ecx
je 0x406af0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x406ad6
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x11c]
call fcn.00407d3e
push 0xaa991c
lea ecx, [ebp - 0x11c]
call fcn.00407937
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004035da
push dword [eax]
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004035c6
push dword [eax]
lea ecx, [ebp - 0x164]
call fcn.00407d67
lea eax, [ebp - 0x164]
push eax
call fcn.00405000
pop ecx
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x406bd3
push dword [ebp - 0x18]
lea ecx, [ebp - 0x134]
call fcn.00407908
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x134]
call fcn.00404ebd
movzx eax, al
test eax, eax
je 0x406baa
push 0
push dword [ebp - 0xd8]
push 0
push dword [ebp - 0xac]
call fcn.00406349
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x406bc6
push 1
push 0
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0xac]
call fcn.00406349
add esp, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x134]
call fcn.00402eba
jmp 0x406c06
cmp dword [ebp + 0x10], 0
jne 0x406be9
mov ecx, dword [ebp + 0xc]
call fcn.00402f16
mov dword [ebp - 0xc8], eax
jmp 0x406bf3
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0xc8], eax
push dword [ebp - 0xc8]
push dword [ebp + 8]
call fcn.00406025
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x164]
call fcn.00402d92
lea ecx, [ebp - 0x11c]
call fcn.00402eba
mov eax, dword [ebp - 0x14]
jmp 0x406c23
xor eax, eax
mov esp, ebp
pop ebp
ret