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

Disassembly:
push 0xffffffffffffffff
push 0x441e68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
xor ecx, ecx
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov esi, dword [ebp + 0x7c]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x58], eax
cmp esi, dword [ebp + 0x80]
jbe 0x4053b1
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], esi
jmp 0x4053c0
mov edi, dword [ebp + 0x80]
lea esi, [ebp + 0x78]
mov dword [esp + 0x18], esi
cmp dword [esi + 4], edi
jbe 0x4053dc
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
test esi, esi
je 0x4053e4
cmp esi, esi
je 0x4053ee
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x24], edi
je 0x4057e9
mov byte [esp + 0x13], 0xf7
test ecx, ecx
je 0x40541f
mov esi, dword [esp + 0x3c]
mov edx, eax
sub edx, ecx
sub esi, ecx
cmp edx, esi
jae 0x40541f
lea ecx, [eax + 1]
mov byte [eax], 0xf7
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
jmp 0x40549e
mov ebp, eax
cmp ecx, eax
jbe 0x40542f
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test ecx, ecx
je 0x40543d
mov edx, eax
sub edx, ecx
jne 0x405441
xor esi, esi
jmp 0x405451
mov edi, ecx
cmp ecx, eax
jbe 0x40544d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, ebp
sub esi, edi
lea eax, [esp + 0x13]
push eax
push 1
push ebp
push ebx
lea ecx, [esp + 0x40]
call fcn.00402870
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, eax
cmp eax, ecx
jbe 0x40547f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea edx, [edi + esi]
cmp edx, ecx
ja 0x40548a
cmp edx, eax
jae 0x405498
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov byte [esp + 0x13], 0x11
test eax, eax
je 0x4054c3
mov esi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
sub esi, eax
cmp edx, esi
jae 0x4054c3
mov eax, ecx
mov byte [ecx], 0x11
lea ecx, [eax + 1]
mov dword [esp + 0x38], ecx
jmp 0x405538
mov ebp, ecx
cmp eax, ecx
jbe 0x4054d3
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test eax, eax
je 0x4054e1
mov edx, ecx
sub edx, eax
jne 0x4054e5
xor esi, esi
jmp 0x4054f5
mov edi, eax
cmp eax, ecx
jbe 0x4054f1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, ebp
sub esi, edi
lea eax, [esp + 0x13]
push eax
push 1
push ebp
push ebx
lea ecx, [esp + 0x40]
call fcn.00402870
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, eax
cmp eax, ecx
jbe 0x405523
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea edx, [edi + esi]
cmp edx, ecx
ja 0x40552e
cmp edx, eax
jae 0x40553c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov byte [esp + 0x13], 9
test eax, eax
je 0x40555f
mov esi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
sub esi, eax
cmp edx, esi
jae 0x40555f
lea eax, [ecx + 1]
mov byte [ecx], 9
mov dword [esp + 0x38], eax
jmp 0x4055d8
mov ebp, ecx
cmp eax, ecx
jbe 0x405573
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test eax, eax
je 0x405581
mov edx, ecx
sub edx, eax
jne 0x405585
xor esi, esi
jmp 0x405595
mov edi, eax
cmp eax, ecx
jbe 0x405591
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, ebp
sub esi, edi
lea eax, [esp + 0x13]
push eax
push 1
push ebp
push ebx
lea ecx, [esp + 0x40]
call fcn.00402870
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edi, ecx
cmp ecx, eax
jbe 0x4055c3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [edi + esi]
cmp edx, eax
ja 0x4055ce
cmp edx, ecx
jae 0x4055dc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x13], 0
test ecx, ecx
je 0x405605
mov esi, dword [esp + 0x3c]
mov edx, eax
sub edx, ecx
sub esi, ecx
cmp edx, esi
jae 0x405605
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [eax + 1]
mov byte [eax], 0
mov dword [esp + 0x38], ecx
jmp 0x40567c
mov ebp, eax
cmp ecx, eax
jbe 0x405619
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test ecx, ecx
je 0x405627
mov edx, eax
sub edx, ecx
jne 0x40562b
xor esi, esi
jmp 0x40563b
mov edi, ecx
cmp ecx, eax
jbe 0x405637
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, ebp
sub esi, edi
lea eax, [esp + 0x13]
push eax
push 1
push ebp
push ebx
lea ecx, [esp + 0x40]
call fcn.00402870
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, eax
cmp eax, ecx
jbe 0x40566b
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea edx, [edi + esi]
cmp edx, ecx
ja 0x405676
cmp edx, eax
jae 0x405680
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x405692
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
cmp edi, dword [esi + 8]
jb 0x4056a5
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4056ca
mov esi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
sub esi, eax
cmp edx, esi
jae 0x4056ca
mov dl, byte [edi]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [ecx + 1]
mov byte [ecx], dl
mov dword [esp + 0x38], eax
jmp 0x405735
mov edi, ecx
cmp eax, ecx
jbe 0x4056da
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test eax, eax
je 0x4056e8
mov edx, ecx
sub edx, eax
jne 0x4056ec
xor esi, esi
jmp 0x4056fc
mov ebp, eax
cmp eax, ecx
jbe 0x4056f8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, edi
sub esi, ebp
mov eax, dword [esp + 0x24]
push eax
push 1
push edi
push ebx
lea ecx, [esp + 0x40]
call fcn.00402870
mov eax, dword [esp + 0x34]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, eax
cmp eax, dword [esp + 0x38]
jbe 0x405726
call ebx
mov eax, dword [esp + 0x34]
lea ecx, [edi + esi]
cmp ecx, dword [esp + 0x38]
ja 0x405733
cmp ecx, eax
jae 0x405735
call ebx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xea60
push ecx
call fcn.00404020
lea edx, [esp + 0x48]
add esp, 8
push edx
call fcn.00403dd0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x30]
add esp, 0x14
lea eax, [esp + 0x30]
push eax
call fcn.004096c0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edi, eax
cmp ecx, eax
jbe 0x405782
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov esi, ecx
cmp ecx, eax
jbe 0x405792
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
cmp esi, edi
je 0x4057bc
sub eax, edi
lea ebp, [eax + esi]
test eax, eax
jle 0x4057b0
push eax
push edi
push eax
push esi
call dword [sym.imp.MSVCR80.dll_memmove_s]
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, ebp
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
cmp esi, dword [edx + 0x80]
jb 0x4057d6
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
inc dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x14]
jmp 0x4053c0
mov ecx, dword [ebp + 0x30]
lea edx, [ebp + 0x88]
push edx
call fcn.004096c0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x405bc6
mov eax, dword [ebp + 0x80]
sub eax, ecx
je 0x405bc6
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov esi, dword [esp + 0x34]
cmp esi, eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x58], 1
mov byte [esp + 0x13], 0xf7
je 0x405853
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x405853
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov byte [eax], 0xf7
inc eax
mov dword [esp + 0x38], eax
jmp 0x40587c
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, eax
cmp esi, eax
jbe 0x405861
call ebx
lea ecx, [esp + 0x13]
push ecx
lea eax, [esp + 0x34]
push edi
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
call fcn.004033c0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov byte [esp + 0x13], 0x10
test esi, esi
je 0x4058a1
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x4058a1
mov byte [eax], 0x10
inc eax
mov dword [esp + 0x38], eax
jmp 0x4058c4
mov edi, eax
cmp esi, eax
jbe 0x4058a9
call ebx
lea ecx, [esp + 0x13]
push ecx
lea eax, [esp + 0x34]
push edi
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
call fcn.004033c0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov byte [esp + 0x13], 0
test esi, esi
je 0x4058e9
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x4058e9
mov byte [eax], 0
inc eax
mov dword [esp + 0x38], eax
jmp 0x40590c
mov edi, eax
cmp esi, eax
jbe 0x4058f1
call ebx
lea ecx, [esp + 0x13]
push ecx
lea eax, [esp + 0x34]
push edi
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
call fcn.004033c0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov byte [esp + 0x13], 0
test esi, esi
je 0x405931
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x405931
mov byte [eax], 0
inc eax
mov dword [esp + 0x38], eax
jmp 0x405954
mov edi, eax
cmp esi, eax
jbe 0x405939
call ebx
lea ecx, [esp + 0x13]
push ecx
lea eax, [esp + 0x34]
push edi
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
call fcn.004033c0
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 0x7c]
test edx, edx
jne 0x40595f
xor bl, bl
jmp 0x405967
mov ebx, dword [ebp + 0x80]
sub bl, dl
mov esi, dword [esp + 0x34]
mov byte [esp + 0x13], bl
test esi, esi
je 0x405992
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x405992
mov byte [eax], bl
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [eax + 1]
mov dword [esp + 0x38], ecx
jmp 0x4059bb
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, eax
cmp esi, eax
jbe 0x4059a0
call ebx
lea ecx, [esp + 0x13]
push ecx
lea eax, [esp + 0x34]
push edi
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
call fcn.004033c0
mov ecx, dword [esp + 0x38]
mov esi, dword [ebp + 0x7c]
cmp esi, dword [ebp + 0x80]
jbe 0x4059cc
call ebx
mov ecx, dword [esp + 0x38]
mov ebp, esi
mov dword [esp + 0x24], ebp
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x80]
add edi, 0x78
cmp dword [edi + 4], esi
jbe 0x4059ea
call ebx
mov ecx, dword [esp + 0x38]
test edi, edi
jne 0x4059f4
call ebx
mov ecx, dword [esp + 0x38]
cmp ebp, esi
je 0x405af3
test edi, edi
jne 0x405a06
call ebx
mov ecx, dword [esp + 0x38]
cmp ebp, dword [edi + 8]
jb 0x405a11
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x405a35
mov esi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
sub esi, eax
cmp edx, esi
jae 0x405a35
mov dl, byte [ebp]
lea eax, [ecx + 1]
mov byte [ecx], dl
mov dword [esp + 0x38], eax
jmp 0x405aa2
mov edi, ecx
cmp eax, ecx
jbe 0x405a45
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test eax, eax
je 0x405a53
mov edx, ecx
sub edx, eax
jne 0x405a57
xor esi, esi
jmp 0x405a67
mov ebp, eax
cmp eax, ecx
jbe 0x405a63
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, edi
sub esi, ebp
mov eax, dword [esp + 0x24]
push eax
push 1
push edi
push ebx
lea ecx, [esp + 0x40]
call fcn.00402870
mov eax, dword [esp + 0x34]
mov edi, eax
cmp eax, dword [esp + 0x38]
jbe 0x405a8f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
lea ecx, [edi + esi]
cmp ecx, dword [esp + 0x38]
ja 0x405a9c
cmp ecx, eax
jae 0x405aa2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xea60
push ecx
call fcn.00404020
lea edx, [esp + 0x48]
add esp, 8
push edx
call fcn.00403dd0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp ecx, dword [eax + 0x80]
jb 0x405adc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jmp 0x4059d2
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x405aff
xor ecx, ecx
jmp 0x405b01
sub ecx, eax
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403f50
add esp, 8
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 2
call fcn.004024f0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x58], 1
test eax, eax
je 0x405b34
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x405b44
mov ecx, dword [esp + 0x48]
sub ecx, eax
jne 0x405b4a
call ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov esi, eax
test ecx, ecx
je 0x405b5f
mov eax, dword [esp + 0x38]
sub eax, ecx
cmp eax, 2
ja 0x405b65
call ebx
mov ecx, dword [esp + 0x34]
mov dl, byte [esi]
mov byte [ecx + 2], dl
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x405b7d
mov eax, dword [esp + 0x48]
sub eax, ecx
cmp eax, 1
ja 0x405b83
call ebx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
lea esi, [ecx + 1]
test eax, eax
je 0x405b99
mov ecx, dword [esp + 0x38]
sub ecx, eax
cmp ecx, 3
ja 0x405b9f
call ebx
mov eax, dword [esp + 0x34]
mov cl, byte [esi]
mov byte [eax + 3], cl
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x30]
lea edx, [esp + 0x30]
push edx
call fcn.004096c0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x405bc6
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x405bd7
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret