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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x574294
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x668038]
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.0050b2b0
lea ecx, [esp + 0x48]
xor edi, edi
push ecx
mov dword [esp + 0xc4], edi
call fcn.0050ade0
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0xc4], 1
call fcn.0050aec0
cmp esi, edi
jbe 0x5056df
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.00500420
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xc8], 2
call fcn.0050b020
add esi, 0x14
mov dword [ebp + 0x10], esi
lea ecx, [esp + 0x90]
mov byte [esp + 0xc0], 3
call fcn.004d6df0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc0], 1
call fcn.004d6df0
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 0x505623
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.00500510
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.004fcae0
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 0x505679
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 0x5056a7
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.0050b1b0
add dword [esp + 0x18], 0x38
add dword [esp + 0x20], 0x18
inc edi
cmp edi, dword [ebp + 0x14]
jb 0x5055a0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x24], 0
call fcn.004fcae0
mov byte [esp + 0xc0], 6
lea ecx, [ecx]
xor edi, edi
mov byte [esp + 0x17], 0
cmp dword [ebp + 0x14], edi
jbe 0x505a07
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 0x505745
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
cmp byte [ebx + ecx + 0x37], 0
jne 0x5058bf
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 0x505777
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 0x5058bf
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 0x5057ac
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 0x5057e0
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 0x505815
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 0x50584a
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 0x50587a
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 0x505887
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 0x5058ac
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
add esi, ecx
call fcn.00500510
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x18]
cmp byte [esp + 0x17], 0
jne 0x5058f9
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 0x5058ed
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 0x5058fe
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 0x50571e
cmp byte [esp + 0x17], 0
je 0x505a07
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 0x5059b7
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.004de400
add esp, 4
test edi, edi
jne 0x505971
xor eax, eax
jmp 0x5059b5
lea ebx, [edi*4]
push ebx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x5059b1
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 0x5059df
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 0x505986
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 0x505700
push 1
push 0x668e7c
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
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 0x505f77
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 0x505a54
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 0x505a8f
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 0x505ab4
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 0x505ad9
mov ecx, ebx
jmp 0x505b5c
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.004de400
add esp, 4
test esi, esi
jne 0x505b07
xor eax, eax
jmp 0x505b56
lea eax, [esi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x505b56
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 0x505fc7
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 0x505b20
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 0x505bb0
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 0x505f66
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 0x505bf8
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 0x505d86
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 0x505c59
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 0x505c89
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 0x505cba
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 0x505ce0
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 0x505d20
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 0x505d48
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 0x505c30
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 0x505daf
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 0x505dde
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 0x505e06
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 0x505e2c
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 0x505e66
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 0x505e8e
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 0x505f38
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.004de400
add esp, 4
test ebx, ebx
jne 0x505eea
xor eax, eax
jmp 0x505f36
lea eax, [ebx*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x505f36
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 0x505fef
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 0x505f00
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 0x505a1e
lea ecx, [esp + 0x64]
mov byte [esp + 0xc0], 1
call fcn.004d7700
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xc4], 0
call fcn.0050ae40
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0xc4], 0xffffffff
call fcn.0050b330
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 0x668e7c
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x668e7c
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x63d768
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x78], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
int3