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

Disassembly:
push 0xffffffffffffffff
push 0x441e78
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 0x4052f1
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], esi
jmp 0x405300
mov edi, dword [ebp + 0x80]
lea esi, [ebp + 0x78]
mov dword [esp + 0x18], esi
cmp dword [esi + 4], edi
jbe 0x40531c
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
test esi, esi
je 0x405324
cmp esi, esi
je 0x40532e
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x24], edi
je 0x405729
mov byte [esp + 0x13], 0xf7
test ecx, ecx
je 0x40535f
mov esi, dword [esp + 0x3c]
mov edx, eax
sub edx, ecx
sub esi, ecx
cmp edx, esi
jae 0x40535f
lea ecx, [eax + 1]
mov byte [eax], 0xf7
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
jmp 0x4053de
mov ebp, eax
cmp ecx, eax
jbe 0x40536f
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test ecx, ecx
je 0x40537d
mov edx, eax
sub edx, ecx
jne 0x405381
xor esi, esi
jmp 0x405391
mov edi, ecx
cmp ecx, eax
jbe 0x40538d
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.004027b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, eax
cmp eax, ecx
jbe 0x4053bf
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 0x4053ca
cmp edx, eax
jae 0x4053d8
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 0x405403
mov esi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
sub esi, eax
cmp edx, esi
jae 0x405403
mov eax, ecx
mov byte [ecx], 0x11
lea ecx, [eax + 1]
mov dword [esp + 0x38], ecx
jmp 0x405478
mov ebp, ecx
cmp eax, ecx
jbe 0x405413
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test eax, eax
je 0x405421
mov edx, ecx
sub edx, eax
jne 0x405425
xor esi, esi
jmp 0x405435
mov edi, eax
cmp eax, ecx
jbe 0x405431
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.004027b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edi, eax
cmp eax, ecx
jbe 0x405463
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 0x40546e
cmp edx, eax
jae 0x40547c
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 0x40549f
mov esi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
sub esi, eax
cmp edx, esi
jae 0x40549f
lea eax, [ecx + 1]
mov byte [ecx], 9
mov dword [esp + 0x38], eax
jmp 0x405518
mov ebp, ecx
cmp eax, ecx
jbe 0x4054b3
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 0x4054c1
mov edx, ecx
sub edx, eax
jne 0x4054c5
xor esi, esi
jmp 0x4054d5
mov edi, eax
cmp eax, ecx
jbe 0x4054d1
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.004027b0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edi, ecx
cmp ecx, eax
jbe 0x405503
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 0x40550e
cmp edx, ecx
jae 0x40551c
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 0x405545
mov esi, dword [esp + 0x3c]
mov edx, eax
sub edx, ecx
sub esi, ecx
cmp edx, esi
jae 0x405545
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [eax + 1]
mov byte [eax], 0
mov dword [esp + 0x38], ecx
jmp 0x4055bc
mov ebp, eax
cmp ecx, eax
jbe 0x405559
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 0x405567
mov edx, eax
sub edx, ecx
jne 0x40556b
xor esi, esi
jmp 0x40557b
mov edi, ecx
cmp ecx, eax
jbe 0x405577
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.004027b0
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 0x4055ab
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea edx, [edi + esi]
cmp edx, ecx
ja 0x4055b6
cmp edx, eax
jae 0x4055c0
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x4055d2
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
cmp edi, dword [esi + 8]
jb 0x4055e5
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40560a
mov esi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
sub esi, eax
cmp edx, esi
jae 0x40560a
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 0x405675
mov edi, ecx
cmp eax, ecx
jbe 0x40561a
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test eax, eax
je 0x405628
mov edx, ecx
sub edx, eax
jne 0x40562c
xor esi, esi
jmp 0x40563c
mov ebp, eax
cmp eax, ecx
jbe 0x405638
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.004027b0
mov eax, dword [esp + 0x34]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, eax
cmp eax, dword [esp + 0x38]
jbe 0x405666
call ebx
mov eax, dword [esp + 0x34]
lea ecx, [edi + esi]
cmp ecx, dword [esp + 0x38]
ja 0x405673
cmp ecx, eax
jae 0x405675
call ebx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xea60
push ecx
call fcn.00403f60
lea edx, [esp + 0x48]
add esp, 8
push edx
call fcn.00403d10
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x30]
add esp, 0x14
lea eax, [esp + 0x30]
push eax
call fcn.00409600
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edi, eax
cmp ecx, eax
jbe 0x4056c2
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov esi, ecx
cmp ecx, eax
jbe 0x4056d2
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
cmp esi, edi
je 0x4056fc
sub eax, edi
lea ebp, [eax + esi]
test eax, eax
jle 0x4056f0
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 0x405716
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 0x405300
mov ecx, dword [ebp + 0x30]
lea edx, [ebp + 0x88]
push edx
call fcn.00409600
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x405b06
mov eax, dword [ebp + 0x80]
sub eax, ecx
je 0x405b06
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 0x405793
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x405793
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov byte [eax], 0xf7
inc eax
mov dword [esp + 0x38], eax
jmp 0x4057bc
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, eax
cmp esi, eax
jbe 0x4057a1
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.00403300
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov byte [esp + 0x13], 0x10
test esi, esi
je 0x4057e1
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x4057e1
mov byte [eax], 0x10
inc eax
mov dword [esp + 0x38], eax
jmp 0x405804
mov edi, eax
cmp esi, eax
jbe 0x4057e9
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.00403300
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov byte [esp + 0x13], 0
test esi, esi
je 0x405829
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x405829
mov byte [eax], 0
inc eax
mov dword [esp + 0x38], eax
jmp 0x40584c
mov edi, eax
cmp esi, eax
jbe 0x405831
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.00403300
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov byte [esp + 0x13], 0
test esi, esi
je 0x405871
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x405871
mov byte [eax], 0
inc eax
mov dword [esp + 0x38], eax
jmp 0x405894
mov edi, eax
cmp esi, eax
jbe 0x405879
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.00403300
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 0x7c]
test edx, edx
jne 0x40589f
xor bl, bl
jmp 0x4058a7
mov ebx, dword [ebp + 0x80]
sub bl, dl
mov esi, dword [esp + 0x34]
mov byte [esp + 0x13], bl
test esi, esi
je 0x4058d2
mov edx, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sub edx, esi
cmp ecx, edx
jae 0x4058d2
mov byte [eax], bl
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [eax + 1]
mov dword [esp + 0x38], ecx
jmp 0x4058fb
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, eax
cmp esi, eax
jbe 0x4058e0
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.00403300
mov ecx, dword [esp + 0x38]
mov esi, dword [ebp + 0x7c]
cmp esi, dword [ebp + 0x80]
jbe 0x40590c
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 0x40592a
call ebx
mov ecx, dword [esp + 0x38]
test edi, edi
jne 0x405934
call ebx
mov ecx, dword [esp + 0x38]
cmp ebp, esi
je 0x405a33
test edi, edi
jne 0x405946
call ebx
mov ecx, dword [esp + 0x38]
cmp ebp, dword [edi + 8]
jb 0x405951
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x405975
mov esi, dword [esp + 0x3c]
mov edx, ecx
sub edx, eax
sub esi, eax
cmp edx, esi
jae 0x405975
mov dl, byte [ebp]
lea eax, [ecx + 1]
mov byte [ecx], dl
mov dword [esp + 0x38], eax
jmp 0x4059e2
mov edi, ecx
cmp eax, ecx
jbe 0x405985
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
lea ebx, [esp + 0x30]
test eax, eax
je 0x405993
mov edx, ecx
sub edx, eax
jne 0x405997
xor esi, esi
jmp 0x4059a7
mov ebp, eax
cmp eax, ecx
jbe 0x4059a3
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.004027b0
mov eax, dword [esp + 0x34]
mov edi, eax
cmp eax, dword [esp + 0x38]
jbe 0x4059cf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
lea ecx, [edi + esi]
cmp ecx, dword [esp + 0x38]
ja 0x4059dc
cmp ecx, eax
jae 0x4059e2
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.00403f60
lea edx, [esp + 0x48]
add esp, 8
push edx
call fcn.00403d10
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp ecx, dword [eax + 0x80]
jb 0x405a1c
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 0x405912
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x405a3f
xor ecx, ecx
jmp 0x405a41
sub ecx, eax
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403e90
add esp, 8
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 2
call fcn.00402430
mov eax, dword [esp + 0x24]
mov byte [esp + 0x58], 1
test eax, eax
je 0x405a74
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x405a84
mov ecx, dword [esp + 0x48]
sub ecx, eax
jne 0x405a8a
call ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov esi, eax
test ecx, ecx
je 0x405a9f
mov eax, dword [esp + 0x38]
sub eax, ecx
cmp eax, 2
ja 0x405aa5
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 0x405abd
mov eax, dword [esp + 0x48]
sub eax, ecx
cmp eax, 1
ja 0x405ac3
call ebx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
lea esi, [ecx + 1]
test eax, eax
je 0x405ad9
mov ecx, dword [esp + 0x38]
sub ecx, eax
cmp ecx, 3
ja 0x405adf
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.00409600
mov eax, dword [esp + 0x44]
test eax, eax
je 0x405b06
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x405b17
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