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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56d904
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov esi, dword [ebp + 0x14]
push esi
lea eax, [esp + 0x34]
push eax
call fcn.00505f00
lea ecx, [esp + 0x48]
xor edi, edi
push ecx
mov dword [esp + 0xc4], edi
call fcn.004fd550
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xc4], 1
call fcn.00505b10
cmp esi, edi
jbe 0x50036f
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
lea ecx, [ecx]
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov esi, dword [ebp + 0x10]
movzx ecx, al
push ecx
push esi
lea edx, [esp + 0x84]
push edx
xor ecx, ecx
call fcn.004fafc0
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xc8], 2
call fcn.00505c70
add esi, 0x14
mov dword [ebp + 0x10], esi
lea ecx, [esp + 0x90]
mov byte [esp + 0xc0], 3
call fcn.004d1a40
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc0], 1
call fcn.004d1a40
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x5002b3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x54]
lea esi, [edx + eax]
call fcn.004fb0b0
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
push ecx
call fcn.004f7660
mov byte [esp + 0xcc], 5
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x500309
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
lea esi, [ecx + edx]
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x48]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x500337
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esi + 0x28]
dec ecx
mov eax, 1
shl eax, cl
mov byte [esp + 0xcc], 1
mov ecx, eax
call fcn.00505e00
add dword [esp + 0x18], 0x38
add dword [esp + 0x20], 0x18
inc edi
cmp edi, dword [ebp + 0x14]
jb 0x500230
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x24], 0
call fcn.004f7660
mov byte [esp + 0xc0], 6
lea ecx, [ecx]
xor edi, edi
mov byte [esp + 0x17], 0
cmp dword [ebp + 0x14], edi
jbe 0x500697
mov ecx, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0x58]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5003d5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
cmp byte [ebx + ecx + 0x37], 0
jne 0x50054f
mov esi, dword [esp + 0x58]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x500407
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
cmp edx, dword [ebx + ecx + 0x2c]
jne 0x50054f
mov esi, dword [esp + 0x58]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x50043c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
lea esi, [edx + ecx]
mov edx, dword [esp + 0x40]
sub edx, ebx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x500470
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
mov esi, dword [esi + 0x30]
lea eax, [edx + ebx + 0xc]
mov edx, dword [edx + ebx + 0x10]
sub edx, dword [eax]
mov dword [esp + 0x24], eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
shr esi, 1
add eax, edx
cmp esi, eax
jb 0x5004a5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
lea edx, [esi + esi*2]
mov esi, dword [esp + 0x24]
mov esi, dword [esi]
sub eax, ecx
lea ebx, [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 edi, eax
jb 0x5004da
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
cmp byte [esi + ecx + 0x35], 0
mov ecx, dword [esp + 0x28]
je 0x50050a
mov eax, dword [ecx]
lea edx, [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0x10]
push edx
call eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [edx + 0x20]
push ebx
call eax
jmp 0x500517
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x64]
push eax
push ebx
call edx
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x50053c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
add esi, ecx
call fcn.004fb0b0
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
jne 0x500589
mov esi, dword [esp + 0x58]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x50057d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
cmp byte [ebx + ecx + 0x37], 0
mov byte [esp + 0x17], 0
jne 0x50058e
mov byte [esp + 0x17], 1
add dword [esp + 0x20], 0x18
inc edi
add ebx, 0x38
mov dword [esp + 0x18], ebx
cmp edi, dword [ebp + 0x14]
jb 0x5003ae
cmp byte [esp + 0x17], 0
je 0x500697
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x64]
push eax
call edx
mov ecx, dword [esp + 0x6c]
mov esi, eax
mov edi, dword [esi + 4]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], esi
mov ebx, ecx
cmp eax, edi
je 0x500647
add eax, eax
add eax, eax
push eax
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push edi
call fcn.004d9000
add esp, 4
test edi, edi
jne 0x500601
xor eax, eax
jmp 0x500645
lea ebx, [edi*4]
push ebx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x500641
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 0x50066f
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 ebx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x500616
mov esi, dword [esp + 0x24]
mov ecx, eax
lea eax, [edi*4]
push eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edi
mov edx, dword [esi + 8]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
add esp, 0x10
inc dword [esp + 0x1c]
jmp 0x500390
push 1
push 0x660e74
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63624c
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x78], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [ebp + 0x14], edi
jbe 0x500c07
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
add eax, 0xc
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
cmp dword [esp + 0x1c], eax
jb 0x5006e4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + ecx + 0x10]
sub edx, dword [edi + ecx + 0xc]
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x50071f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x3c]
lea esi, [edi + ecx + 0xc]
mov ecx, dword [edi + ecx + 0x10]
sub ecx, dword [esi]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
dec ebx
add ecx, edx
cmp ebx, ecx
jb 0x500744
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
lea edx, [ebx + ebx*2]
mov esi, dword [eax + edx*4 + 4]
mov ebx, dword [ecx + 8]
lea edx, [eax + edx*4]
mov eax, dword [ecx + 4]
mov dword [esp + 0x24], edx
cmp eax, esi
jne 0x500769
mov ecx, ebx
jmp 0x5007ec
lea ecx, [eax*4]
push ecx
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 esi
call fcn.004d9000
add esp, 4
test esi, esi
jne 0x500797
xor eax, eax
jmp 0x5007e6
lea eax, [esi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x5007e6
lea esp, [esp]
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 0x500c57
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, [esi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x5007b0
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 4], esi
mov edx, dword [edx + 8]
lea eax, [esi*4]
push eax
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
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 ebx, eax
jb 0x500840
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + ecx + 0x10]
sub edx, dword [edi + ecx + 0xc]
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x500bf6
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x500888
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + ecx + 0x10]
sub edx, dword [edi + ecx + 0xc]
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
lea eax, [edx + eax - 2]
cmp eax, 1
mov dword [esp + 0x20], eax
jl 0x500a16
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
inc eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x60], eax
nop
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 + 0x1c], eax
jb 0x5008e9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + ecx + 0x10]
sub edx, dword [edi + ecx + 0xc]
lea ebx, [edi + ecx + 0xc]
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x60], eax
jb 0x500919
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebx]
mov ebx, dword [esp + 0x24]
lea eax, [ebx + edx + 0xc]
mov dword [esp + 0x2c], eax
sub esi, ecx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x50094a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x3c]
lea esi, [edi + ecx + 0xc]
mov ecx, dword [edi + ecx + 0x10]
sub ecx, dword [esi]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x20], ecx
jb 0x500970
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
push eax
mov eax, dword [esi]
add eax, ebx
push eax
call edx
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x5009b0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x3c]
mov ecx, dword [edi + esi + 0x10]
sub ecx, dword [edi + esi + 0xc]
lea ebx, [edi + esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x20], ecx
jb 0x5009d8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
add eax, esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call edx
mov eax, dword [esp + 0x20]
dec dword [esp + 0x60]
mov ecx, dword [esp + 0x3c]
sub esi, 0xc
dec eax
cmp eax, 1
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], eax
jge 0x5008c0
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 + 0x1c], eax
jb 0x500a3f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [edi + ecx + 0x10]
sub edx, dword [edi + ecx + 0xc]
lea ebx, [edi + ecx + 0xc]
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x500a6e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
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, 0xc
cmp dword [esp + 0x1c], eax
jb 0x500a96
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x3c]
lea eax, [edi + ecx + 0xc]
mov ecx, dword [edi + ecx + 0x10]
sub ecx, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x500abc
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push ebx
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x500af6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x3c]
mov edx, ecx
lea ebx, [edi + ecx + 0xc]
mov ecx, dword [edi + edx + 0x10]
sub ecx, dword [ebx]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x500b1e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esi]
mov edx, dword [ebx + 0x18]
push eax
push ecx
mov ecx, esi
call edx
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
mov ebx, dword [eax + 4]
mov esi, dword [ecx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x500bc8
lea ecx, [eax*4]
push ecx
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 ebx
call fcn.004d9000
add esp, 4
test ebx, ebx
jne 0x500b7a
xor eax, eax
jmp 0x500bc6
lea eax, [ebx*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x500bc6
nop
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 0x500c7f
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, [ebx*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x500b90
mov esi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
add ebx, ebx
add ebx, ebx
mov dword [eax + 8], esi
mov eax, dword [edx + 8]
push ebx
push eax
push ebx
push esi
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x2c]
add esp, 0x10
inc ebx
add edi, 0x18
mov dword [esp + 0x1c], ebx
cmp ebx, dword [ebp + 0x14]
jb 0x5006ae
lea ecx, [esp + 0x64]
mov byte [esp + 0xc0], 1
call fcn.004d2340
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xc4], 0
call fcn.00505a90
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0xc4], 0xffffffff
call fcn.00505f80
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 1
push 0x660e74
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63624c
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x660e74
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63624c
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x78], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
int3