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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xd6c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xd30], eax
mov eax, dword [ecx]
mov dword [esp], eax
call fcn.004c29e0
mov ecx, dword [ebp + 8]
mov ebx, eax
mov edi, dword [ecx + 0x18]
mov esi, dword [ecx + 8]
add ecx, 0x74
call fcn.004c4fa0
mov edx, dword [ebp - 0xd30]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0x1c
mov dword [esp + 8], str.align_func_param
mov dword [esp + 4], str.AlignStack::_s__d_:_Candidate_is__s:_orig_line_is__zu__column_is__zu__type_is__s__level_is__zu_n
mov dword [esp], 0x2d
call fcn.0043ce70
mov dword [esp + 0xc], 0x5ea9a2
mov dword [esp + 8], 0x24
mov dword [esp + 4], str.align_func_param
mov dword [esp], 0x43
call fcn.0043d970
mov eax, dword [0x6ba3c0]
mov dword [ebp - 0xd38], 0
mov dword [ebp - 0xd34], 2
mov dword [ebp - 0xd30], eax
test eax, eax
jne 0x406e80
mov esi, 0x10
lea ebx, [ebp - 0xd1c]
lea esi, [esi]
mov dword [ebx], vtable.gFrame.0
lea edi, [ebx + 4]
mov dword [ebx + 4], 0
mov ecx, edi
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [esp], 0
call fcn.0054e900
lea eax, [ebx + 0x34]
sub esp, 4
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], vtable.gFrame.0
mov ecx, eax
mov dword [ebp - 0xd3c], eax
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
mov dword [esp], 0
call fcn.0054e900
sub esp, 4
movzx eax, word [0x5eaba2]
mov dword [ebx + 0x5c], 0
lea ecx, [ebx + 0x98]
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov word [ebx + 0x7c], ax
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x84], 0
mov byte [ebx + 0x88], 0
mov dword [ebx + 0x8c], 0xffffffff
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], vtable.gFrame.0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xbc], 0
mov dword [esp], 0
call fcn.0054e900
mov dword [ebx + 0xc0], 0
sub esp, 4
add ebx, 0xc4
sub esi, 1
jae 0x406670
mov dword [esp + 0xc], 0x5ea9e8
mov dword [esp + 8], 0x33
mov dword [esp + 4], str.align_func_param
mov dword [esp], 0x43
call fcn.0043d970
mov dword [esp + 0xc], 0x5eaa01
mov dword [esp + 8], 0x34
mov dword [esp + 4], str.align_func_param
mov dword [esp], 0x43
call fcn.0043d970
lea esi, [ebp - 0x18]
lea ebx, [ebp - 0xd1c]
lea esi, [esi]
mov eax, dword [ebp - 0xd38]
mov ecx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xd34]
mov dword [esp], eax
call fcn.00410b10
mov eax, dword [ebp - 0xd30]
add ebx, 0xc4
sub esp, 8
mov dword [ebx - 0x4c], eax
mov eax, dword [0x6ba2fc]
mov dword [ebx - 0x44], eax
mov eax, dword [0x6ba2e8]
mov dword [ebx - 0x40], eax
cmp ebx, esi
jne 0x4068a0
mov dword [ebp - 0xd3c], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xd34], 0
mov dword [ebp - 0xd40], 0
lea esi, [esi]
mov dword [esp], 0
mov ecx, ebx
call fcn.0041e5f0
sub esp, 4
cmp byte [eax + 0xac], 0
mov ebx, eax
jne 0x406c6c
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx]
xor edx, edx
mov dword [ebp - 0xd2c], edx
and eax, 1
mov dword [ebp - 0xd30], eax
cmp ecx, 7
je 0x406b00
cmp ecx, 8
je 0x406b50
mov eax, dword [ebp - 0xd30]
mov edx, dword [ebp - 0xd2c]
mov edi, 0x5ea924
or eax, edx
jne 0x40696a
mov edi, 0x5ea929
mov dword [esp], ecx
call fcn.004c29e0
lea ecx, [ebx + 0x74]
mov esi, eax
call fcn.004c4fa0
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], 0x45
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.align_func_param
mov dword [esp + 4], 0x5eaa60
mov dword [esp], 0x1c
call fcn.0043ce70
movzx eax, byte [ebx + 0xac]
mov byte [ebp - 0xd38], al
test al, al
je 0x406a70
mov byte [ebp - 0xd38], 1
mov ecx, dword [ebx + 0x28]
lea esi, [esi]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], ecx
jae 0x406c6c
mov esi, dword [ebx + 0x38]
xor edx, edx
add dword [ebp - 0xd34], 1
mov dword [ebp - 0xd2c], edx
mov edx, dword [ebp - 0xd2c]
mov eax, esi
and eax, 0x1000000
mov dword [ebp - 0xd30], eax
or eax, edx
je 0x406ac8
cmp dword [ebp - 0xd34], 1
jbe 0x406908
cmp ecx, 0x10
ja 0x406f18
mov eax, dword [ebp - 0xd3c]
cmp eax, ecx
cmovb eax, ecx
imul ecx, ecx, 0xc4
mov dword [ebp - 0xd3c], eax
lea eax, [ebp - 0xd1c]
mov dword [esp + 4], 0
add ecx, eax
mov dword [esp], ebx
call fcn.00411930
sub esp, 8
jmp 0x406908
mov eax, dword [ebx]
cmp eax, 0xbb
je 0x406c10
sub eax, 7
mov ecx, dword [ebx + 0x28]
cmp eax, 1
ja 0x4069e0
imul ecx, ecx, 0xc4
lea eax, [ebp - 0xd1c]
add ecx, eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call fcn.00411660
mov dword [ebp - 0xd34], 0
sub esp, 4
mov dword [ebp - 0xd40], 0
jmp 0x406908
mov eax, dword [ebp - 0xd40]
test eax, eax
je 0x406b70
cmp byte [ebp - 0xd38], 0
jne 0x406ca0
mov eax, dword [ebx]
sub eax, 0xa
cmp eax, 2
ja 0x406ca0
mov dword [ebp - 0xd40], 1
jmp 0x406908
or eax, edx
mov ecx, 0x5ea924
jne 0x406b0e
mov ecx, 0x5ea929
mov dword [esp + 0x18], ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], 0x45
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.align_func_param
mov dword [esp + 4], 0x5eaa1c
mov dword [esp], 0x1c
call fcn.0043ce70
jmp 0x4069ba
or eax, edx
mov edi, 0x5ea924
jne 0x406b5e
mov edi, 0x5ea929
mov dword [esp], 8
call fcn.004c29e0
jmp 0x406972
cmp byte [ebp - 0xd38], 0
jne 0x406908
cmp dword [ebx], 0x6b
jne 0x406908
and esi, 0x40
xor edi, edi
mov eax, esi
or eax, edi
jne 0x406eef
mov dword [esp + 0x10], 0
mov ecx, ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], 0x4f8f60
mov dword [esp + 4], 0
call fcn.0041ef30
sub esp, 0x14
cmp byte [eax + 0xac], 0
jne 0x406bdd
mov eax, dword [eax]
sub eax, 7
cmp eax, 1
jbe 0x406908
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x93
mov dword [esp + 8], str.align_func_param
mov dword [esp + 4], str._s__d_:_comma_count_is__zu_n
mov dword [esp], 0x56
call fcn.0043ce70
jmp 0x406af1
mov dword [esp + 0x10], 0
mov ecx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0x4f8f60
mov dword [esp + 4], 0
call fcn.0041ef30
sub esp, 0x14
cmp byte [eax + 0xac], 0
mov esi, eax
jne 0x406c58
cmp dword [eax], 0x9b
je 0x406dc2
cmp byte [ebx + 0xac], 0
jne 0x4069cf
mov eax, dword [ebx]
jmp 0x406a7d
mov eax, dword [ebp - 0xd3c]
lea edi, [ebp - 0xc58]
mov esi, 1
test eax, eax
je 0x406ca0
lea esi, [esi]
mov ecx, edi
call fcn.00412630
add esi, 1
add edi, 0xc4
cmp dword [ebp - 0xd3c], esi
jae 0x406c88
lea esi, [ebp - 0xdc]
lea esi, cs:[esi]
nop
mov dword [esi + 0x94], vtable.gFrame.0
mov edi, dword [esi + 0x98]
test edi, edi
je 0x406d05
mov eax, dword [esi + 0xbc]
mov edi, dword [esi + 0xac]
add eax, 4
mov dword [ebp - 0xd30], eax
cmp edi, eax
jae 0x406cf7
lea esi, [esi]
mov eax, dword [edi]
add edi, 4
mov dword [esp], eax
call fcn.005c2f20
mov eax, dword [ebp - 0xd30]
cmp edi, eax
jb 0x406ce0
mov eax, dword [esi + 0x98]
mov dword [esp], eax
call fcn.005c2f20
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x30], vtable.gFrame.0
test ecx, ecx
je 0x406d52
mov eax, dword [esi + 0x58]
mov edi, dword [esi + 0x48]
add eax, 4
mov dword [ebp - 0xd30], eax
cmp edi, eax
jae 0x406d47
lea esi, cs:[esi]
nop
mov eax, dword [edi]
add edi, 4
mov dword [esp], eax
call fcn.005c2f20
mov eax, dword [ebp - 0xd30]
cmp edi, eax
jb 0x406d30
mov eax, dword [esi + 0x34]
mov dword [esp], eax
call fcn.005c2f20
mov edx, dword [esi + 4]
mov dword [esi], vtable.gFrame.0
test edx, edx
je 0x406d9a
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x18]
add eax, 4
mov dword [ebp - 0xd30], eax
cmp edi, eax
jae 0x406d8f
lea esi, [esi]
mov eax, dword [edi]
add edi, 4
mov dword [esp], eax
call fcn.005c2f20
mov eax, dword [ebp - 0xd30]
cmp edi, eax
jb 0x406d78
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.005c2f20
lea edx, [ebp - 0xd1c]
lea eax, [esi - 0xc4]
cmp esi, edx
je 0x406db8
mov esi, eax
jmp 0x406cb0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [eax + 0x28]
mov dword [esp + 8], 1
mov ecx, esi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp], 0x9a
call fcn.0041f050
sub esp, 0x10
cmp byte [eax + 0xac], 0
mov edi, eax
jne 0x406c58
mov dword [esp], 0xa0
mov ecx, eax
call fcn.004200c0
sub esp, 4
mov ecx, esi
mov dword [esp], 0xa1
call fcn.004200c0
mov eax, dword [edi + 0x28]
sub esp, 4
mov ecx, ebx
mov dword [ebx + 0x28], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], 0x4f8f60
mov dword [esp + 4], 0
call fcn.0041ef30
sub esp, 0x14
cmp byte [eax + 0xac], 0
jne 0x406c58
cmp dword [eax], 0xcb
jne 0x406c58
mov edx, dword [edi + 0x28]
mov dword [eax + 0x28], edx
jmp 0x406c58
mov dword [esp + 0xc], 0x5ea9b9
mov dword [esp + 8], 0x29
mov dword [esp + 4], str.align_func_param
mov dword [esp], 0x43
call fcn.0043d970
mov eax, dword [0x6ba3ac]
mov dword [ebp - 0xd38], eax
mov dword [esp + 0xc], 0x5ea9d2
mov dword [esp + 8], 0x2b
mov dword [esp + 4], str.align_func_param
mov dword [esp], 0x43
call fcn.0043d970
mov eax, dword [ebp - 0xd30]
mov dword [ebp - 0xd34], eax
mov eax, dword [0x6ba398]
mov dword [ebp - 0xd30], eax
jmp 0x406661
mov dword [esp + 0xc], 0x89
mov dword [esp + 8], str.align_func_param
mov dword [esp + 4], str._s__d_:_comma_is_in_template_n
mov dword [esp], 0x56
call fcn.0043ce70
jmp 0x406908
mov dword [esp], 2
mov ebx, dword [fcn.004f0760]
call ebx
mov dword [esp + 0xc], 0x72
mov dword [esp + 8], str.align_func_param
mov dword [esp + 4], str._s__d_:_Not_enough_memory_for_Stack_n
mov dword [esp], eax
call fcn.004061b0
mov dword [esp], 2
call ebx
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], 0x74
mov dword [esp + 8], str.align_func_param
mov dword [esp + 4], str._s__d_:_the_current_maximum_is__zu_n
mov dword [esp], eax
call fcn.004061b0
mov dword [esp], 1
call fcn.0043cae0
mov dword [esp], 0x46
call sub.msvcrt.dll_exit
mov dword [ebp - 0xd30], eax
jmp 0x5c4352
mov dword [ebx], vtable.gFrame.0
mov ecx, edi
call fcn.0054ea20
mov edx, dword [ebp - 0xd30]
mov ebx, 0x10
lea eax, [ebp - 0xd1c]
sub ebx, esi
mov esi, edx
imul ebx, ebx, 0xc4
add ebx, eax
lea eax, [ebp - 0xd1c]
cmp ebx, eax
jne 0x5c43b0
mov dword [esp], esi
call fcn.004e5360
lea ebx, [ebp - 0x18]
sub ebx, 0xc4
mov ecx, ebx
call fcn.004f22e0
lea eax, [ebp - 0xd1c]
cmp ebx, eax
jne 0x5c4391
mov dword [esp], esi
call fcn.004e5360
sub ebx, 0xc4
mov ecx, ebx
call fcn.004f22e0
jmp 0x5c437c