Function at 0x406730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41a5ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.00402500
mov dword [esp + 0x64], 0x41b248
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x8c], 1
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 8]
cmp esi, eax
jge 0x406ad6
mov eax, dword [ebx + 4]
mov cl, byte [esi + eax]
push ecx
push 0x41f348
call fcn.004029c0
add esp, 8
test al, al
jne 0x4067b5
mov eax, dword [ebx + 8]
inc esi
cmp esi, eax
jge 0x406ad6
jmp 0x40678f
test esi, esi
jl 0x406ad6
lea ebp, [esi + 1]
mov edi, ebp
mov dword [esp + 0x10], edi
mov edx, dword [ebx + 4]
movsx eax, byte [edi + edx]
push eax
call fcn.0040de0f
add esp, 4
test eax, eax
jne 0x4067e3
mov ecx, dword [ebx + 4]
cmp byte [edi + ecx], 0x5f
jne 0x4067e6
inc edi
jmp 0x4067c6
mov edx, edi
lea eax, [esp + 0x34]
sub edx, esi
mov ecx, ebx
dec edx
mov dword [esp + 0x10], edi
push edx
push ebp
push eax
call fcn.00409500
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x94], 2
call fcn.00402500
mov dword [esp + 0x44], 0x41b2b8
mov ecx, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
test ecx, ecx
mov byte [esp + 0x8c], 4
jne 0x406854
mov cl, byte [eax + esi]
mov dl, byte [eax + edi]
cmp cl, dl
jne 0x4068f1
cmp cl, 0x25
mov ebp, 0x41f344
je 0x40684a
mov ebp, 0x41f340
inc edi
mov dword [esp + 0x10], edi
jmp 0x4069e1
cmp byte [eax + esi], 0x25
jne 0x406869
cmp byte [eax + edi], 0x25
jne 0x4068f1
inc edi
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x38]
call dword [edx + 4]
mov eax, dword [esp + 0x38]
push eax
call fcn.0040c3e7
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x406918
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x38]
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [0x422abc]
push eax
call fcn.00409910
mov ebp, eax
test ebp, ebp
jne 0x406918
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 2
call fcn.00402b70
mov dword [esp + 0x34], 0x41b238
lea ecx, [esp + 0x34]
mov byte [esp + 0x8c], 5
call fcn.0040a4e0
mov byte [esp + 0x8c], 1
mov dword [esp + 0x34], 0x41b27c
jmp 0x406780
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 2
call fcn.00402b70
lea ecx, [esp + 0x34]
mov byte [esp + 0x8c], 1
call fcn.00402b70
jmp 0x406780
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4069e1
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4069dd
test byte [eax + ebp], 0x80
jne 0x40694b
inc eax
cmp eax, ecx
jl 0x40693b
jmp 0x4069dd
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
call fcn.00402170
test ebp, ebp
mov byte [esp + 0x8c], 6
mov dword [esp + 0x54], 0x41b25c
je 0x406978
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x5c]
call fcn.00402840
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x90], 7
call dword [edx + 4]
mov eax, dword [esp + 0x58]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x4c]
call fcn.00408360
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x48]
call dword [edx + 4]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x54], 0x41b254
lea ecx, [esp + 0x54]
mov byte [esp + 0x8c], 8
call fcn.0040a4e0
mov byte [esp + 0x8c], 4
mov dword [esp + 0x54], 0x41b250
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp esi, eax
jle 0x406a63
sub esi, eax
mov ecx, ebx
push esi
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00409500
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x90], 9
call dword [edx + 4]
mov esi, dword [esi + 4]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x24]
call fcn.00402630
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 0xa
push ecx
lea ecx, [esp + 0x68]
call fcn.004023e0
mov esi, 0x41b27c
mov dword [esp + 0x74], 0x41b238
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x74]
mov byte [esp + 0x8c], 0xb
call fcn.0040a4e0
mov byte [esp + 0x8c], 4
mov dword [esp + 0x74], esi
jmp 0x406a68
mov esi, 0x41b27c
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], edi
call fcn.00402630
lea edx, [esp + 0x28]
lea ecx, [esp + 0x64]
push edx
mov byte [esp + 0x90], 0xc
call fcn.004023e0
mov edi, 0x41b238
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 0xd
call fcn.0040a4e0
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x8c], 0xe
call fcn.0040a4e0
mov byte [esp + 0x8c], 1
mov dword [esp + 0x34], esi
jmp 0x406780
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
cmp ecx, eax
jle 0x406b5b
push eax
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
call fcn.004093f0
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x90], 0xf
call dword [edx + 4]
mov esi, dword [esi + 4]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x30]
call fcn.00402630
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 0x10
call fcn.00402460
mov dword [esp + 0x74], 0x41b238
lea ecx, [esp + 0x74]
mov byte [esp + 0x8c], 0x11
call fcn.00405b10
test eax, eax
je 0x406b53
push eax
call fcn.0040c2f0
add esp, 4
mov byte [esp + 0x8c], 1
mov esi, dword [esp + 0x94]
push 0
push 0
mov ecx, esi
call fcn.004022c0
lea eax, [esp + 0x64]
mov ecx, esi
push eax
mov byte [esp + 0x90], 0x12
mov dword [esi], 0x41b264
call fcn.004023e0
mov dword [esi], 0x41b248
mov dword [esp + 0x18], 1
mov dword [esp + 0x64], 0x41b238
lea ecx, [esp + 0x64]
mov dword [esp + 0x8c], 0x13
call fcn.00405b10
test eax, eax
je 0x406bbe
push eax
call fcn.0040c2f0
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret