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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x574228
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov esi, dword [ebp + 0x14]
push esi
lea eax, [esp + 0x30]
push eax
call fcn.0050b3b0
lea ecx, [esp + 0x50]
xor ebx, ebx
push ecx
mov dword [esp + 0xd4], ebx
call fcn.0050ade0
push esi
lea ecx, [esp + 0x54]
mov byte [esp + 0xd4], 1
call fcn.0050aec0
cmp esi, ebx
jbe 0x507787
xor edi, edi
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov esi, dword [ebp + 0x10]
movzx ecx, al
push ecx
push esi
lea edx, [esp + 0x94]
push edx
xor ecx, ecx
call fcn.00500420
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xd8], 2
call fcn.0050b020
add esi, 0x14
mov dword [ebp + 0x10], esi
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd0], 3
call fcn.004d6df0
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd0], 1
call fcn.004d6df0
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x5076cf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x5c]
lea esi, [edx + edi]
call fcn.00500510
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x88], esp
push ecx
mov ecx, eax
call fcn.004dd0e0
mov byte [esp + 0xec], 5
mov ecx, dword [esp + 0x7c]
sub ecx, dword [esp + 0x78]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x507727
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x78]
lea esi, [ecx + edi]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x507751
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esi + 0x28]
dec ecx
mov eax, 1
shl eax, cl
mov byte [esp + 0xec], 1
mov ecx, eax
call fcn.0050aab0
add dword [esp + 0x1c], 0x18
inc ebx
add edi, 0x38
cmp ebx, dword [ebp + 0x14]
jb 0x507647
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
call fcn.004dd0e0
mov byte [esp + 0xd0], 6
xor ebx, ebx
mov byte [esp + 0x13], 0
cmp dword [ebp + 0x14], ebx
jbe 0x507b95
mov ecx, dword [esp + 0x5c]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x60]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x5077e9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
cmp byte [ecx + edi + 0x37], 0
jne 0x507968
mov esi, dword [esp + 0x60]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x50781b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
cmp edx, dword [ecx + edi + 0x2c]
jne 0x507968
mov esi, dword [esp + 0x60]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x507850
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
lea esi, [ecx + edi]
mov edi, dword [esp + 0x38]
sub edx, edi
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x507880
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 0x30]
lea edx, [edi + eax + 0xc]
mov edi, dword [edi + eax + 0x10]
sub edi, dword [edx]
mov dword [esp + 0x28], edx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
shr esi, 1
add eax, edx
cmp esi, eax
jb 0x5078b8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
lea edx, [esi*8]
sub edx, esi
mov esi, dword [esp + 0x28]
mov esi, dword [esi]
sub eax, ecx
lea edi, [esi + edx*4]
mov esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x5078f3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x18]
cmp byte [ecx + esi + 0x35], 0
mov ecx, dword [esp + 0x24]
je 0x507923
mov eax, dword [ecx]
lea edx, [esp + 0x70]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x10]
push edx
call eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [edx + 0x20]
push edi
call eax
jmp 0x507930
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x70]
push eax
push edi
call edx
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x507955
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
add esi, ecx
call fcn.00500510
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
jne 0x5079a2
mov esi, dword [esp + 0x60]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x507996
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
cmp byte [ecx + edi + 0x37], 0
mov byte [esp + 0x13], 0
jne 0x5079a7
mov byte [esp + 0x13], 1
add dword [esp + 0x1c], 0x18
inc ebx
add edi, 0x38
mov dword [esp + 0x18], edi
cmp ebx, dword [ebp + 0x14]
jb 0x5077c2
cmp byte [esp + 0x13], 0
je 0x507b95
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x70]
push eax
call edx
mov ecx, dword [esp + 0x7c]
mov esi, eax
mov al, byte [esi]
mov byte [esp + 0x70], al
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], esi
mov edi, ecx
cmp eax, ebx
je 0x507a6d
lea edx, [eax*4]
push edx
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push ebx
call fcn.004de400
add esp, 4
test ebx, ebx
jne 0x507a23
xor eax, eax
jmp 0x507a6b
lea edi, [ebx*4]
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x507a67
push 0
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
mov esi, eax
add esp, 4
test esi, esi
je 0x507b45
push esi
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
add esp, 4
call esi
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x507a38
mov esi, dword [esp + 0x20]
mov ecx, eax
lea eax, [ebx*4]
push eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], ebx
mov edx, dword [esi + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov ebx, dword [esi + 0x14]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
add esp, 0x10
mov edi, ecx
cmp eax, ebx
je 0x507b17
add eax, eax
add eax, eax
push eax
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push ebx
call fcn.004de400
add esp, 4
test ebx, ebx
jne 0x507ad1
xor eax, eax
jmp 0x507b15
lea edi, [ebx*4]
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x507b11
push 0
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
mov esi, eax
add esp, 4
test esi, esi
je 0x507b6d
push esi
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
add esp, 4
call esi
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x507ae6
mov esi, dword [esp + 0x20]
mov ecx, eax
lea eax, [ebx*4]
push eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], ebx
mov edx, dword [esi + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x10
inc dword [esp + 0x14]
jmp 0x5077a4
push 1
push 0x668e7c
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x668e7c
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x14], eax
jbe 0x5082a3
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov ebx, eax
add eax, 0x1c
mov dword [ebp + 8], eax
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x14], eax
jb 0x507be8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + ecx + 0x10]
sub edi, dword [eax + ecx + 0xc]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x507c2a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
lea esi, [eax + ecx + 0xc]
mov ecx, dword [eax + ecx + 0x10]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
dec edi
add ecx, edx
cmp edi, ecx
jb 0x507c56
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
lea edx, [edi*8]
sub edx, edi
mov cl, byte [eax + edx*4]
lea eax, [eax + edx*4]
mov byte [ebx], cl
mov edi, dword [eax + 8]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
cmp eax, edi
jne 0x507c7e
mov eax, esi
jmp 0x507cf7
lea edx, [eax*4]
push edx
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push edi
call fcn.004de400
add esp, 4
test edi, edi
jne 0x507cac
xor eax, eax
jmp 0x507cf7
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x507cf7
push 0
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
mov esi, eax
add esp, 4
test esi, esi
je 0x5082f4
push esi
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
add esp, 4
call esi
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x507cc1
mov esi, dword [esp + 0x20]
mov dword [ebx + 8], edi
add edi, edi
add edi, edi
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0xc]
push edi
push ecx
push edi
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov esi, dword [esi + 0x14]
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
add esp, 0x10
cmp eax, esi
jne 0x507d29
mov eax, edi
jmp 0x507da6
lea edx, [eax*4]
push edx
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push esi
call fcn.004de400
add esp, 4
test esi, esi
jne 0x507d57
xor eax, eax
jmp 0x507da6
lea eax, [esi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x507da6
lea esp, [esp]
push 0
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
mov edi, eax
add esp, 4
test edi, edi
je 0x50831c
push edi
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
add esp, 4
call edi
lea eax, [esi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x507d70
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x14], esi
add esi, esi
add esi, esi
mov dword [ebx + 0x18], eax
mov edx, dword [ecx + 0x18]
push esi
push edx
push esi
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x10
cmp dword [esp + 0x14], eax
jb 0x507df5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov edi, dword [ebx + ecx + 0x10]
sub edi, dword [ebx + ecx + 0xc]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x50828a
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x507e46
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edi, dword [ebx + ecx + 0x10]
sub edi, dword [ebx + ecx + 0xc]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea edx, [edx + eax - 2]
cmp edx, 1
mov dword [esp + 0x1c], edx
jl 0x507fef
lea eax, [edx*8]
sub eax, edx
add eax, eax
add eax, eax
inc edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x68], edx
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x507eaf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + ecx + 0x10]
sub edi, dword [eax + ecx + 0xc]
lea ebx, [eax + ecx + 0xc]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x68], eax
jb 0x507ee6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
lea eax, [edi + edx + 0x1c]
mov dword [esp + 0x6c], eax
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x507f19
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
lea esi, [eax + ecx + 0xc]
mov ecx, dword [eax + ecx + 0x10]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x1c], ecx
jb 0x507f46
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
push eax
mov eax, dword [esi]
add eax, edi
push eax
call edx
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x507f84
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi + 0x10]
sub ecx, dword [eax + esi + 0xc]
lea edi, [eax + esi + 0xc]
mov esi, dword [esp + 0x1c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x507fb5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
add eax, edi
push eax
mov eax, dword [esp + 0x2c]
push eax
call edx
dec dword [esp + 0x68]
mov ecx, dword [esp + 0x38]
dec esi
sub edi, 0x1c
mov dword [esp + 0x1c], esi
cmp esi, 1
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x20], edi
jge 0x507e86
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x508018
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + ecx + 0x10]
sub edi, dword [eax + ecx + 0xc]
lea ebx, [eax + ecx + 0xc]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x50804e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [ebx]
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebx, 0x1c
cmp dword [esp + 0x14], eax
jb 0x508076
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
lea esi, [eax + ecx + 0xc]
mov ecx, dword [eax + ecx + 0x10]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x50809f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x24]
mov edx, dword [edi]
mov eax, dword [esi]
mov edx, dword [edx + 0x20]
push ebx
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
sub ecx, ebx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x5080db
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + ebx + 0x10]
sub ecx, dword [eax + ebx + 0xc]
lea esi, [eax + ebx + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x508106
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esi]
mov ebx, dword [edi]
mov edx, dword [ebx + 0x18]
push esi
mov esi, dword [esp + 0x2c]
push esi
mov ecx, edi
call edx
push eax
mov eax, dword [ebx + 0xc]
mov ecx, edi
call eax
mov cl, byte [eax]
mov byte [esi], cl
mov edi, dword [eax + 8]
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 8]
cmp eax, edi
jne 0x50813b
mov eax, ebx
jmp 0x5081b6
lea edx, [eax*4]
push edx
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push edi
call fcn.004de400
add esp, 4
test edi, edi
jne 0x508169
xor eax, eax
jmp 0x5081b6
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x5081b6
mov edi, edi
push 0
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x508344
push ebx
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
add esp, 4
call ebx
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x508180
mov ebx, dword [esp + 0x28]
mov dword [esi + 8], edi
add edi, edi
add edi, edi
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 0xc]
push edi
push ecx
push edi
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov ebx, dword [ebx + 0x14]
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
add esp, 0x10
cmp eax, ebx
je 0x508260
lea edx, [eax*4]
push edx
push 0
push edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push ebx
call fcn.004de400
add esp, 4
test ebx, ebx
jne 0x508213
xor eax, eax
jmp 0x50825e
lea eax, [ebx*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x50825e
push 0
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
mov edi, eax
add esp, 4
test edi, edi
je 0x50836c
push edi
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
add esp, 4
call edi
lea eax, [ebx*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x508228
mov edi, eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x14], ebx
add ebx, ebx
add ebx, ebx
mov dword [esi + 0x18], edi
mov ecx, dword [eax + 0x18]
push ebx
push ecx
push ebx
push edi
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [esp + 0x14]
inc eax
add ebx, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
cmp eax, dword [ebp + 0x14]
jb 0x507bb0
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0xd4], 1
call fcn.004d7930
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0xd4], 0
call fcn.0050ae40
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0xd4], 0xffffffff
call fcn.0050b430
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0x668e7c
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x668e7c
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x668e7c
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x668e7c
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
int3