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

Disassembly:
push 0xffffffffffffffff
push 0x5fae0e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0xb0]
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
cmp esi, ebx
je 0x4dd5ec
lea eax, [ecx + esi*4 - 4]
jmp 0x4dd5e0
cmp dword [eax], ebx
jne 0x4dd65c
dec esi
sub eax, 4
cmp esi, ebx
jne 0x4dd5e0
xor edi, edi
mov eax, dword [esp + 0xa8]
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x44], edi
cmp esi, ebx
je 0x4dd613
lea eax, [ecx + esi*4 - 4]
cmp dword [eax], ebx
jne 0x4dd676
dec esi
sub eax, 4
cmp esi, ebx
jne 0x4dd607
xor eax, eax
mov dword [esp + 0x40], eax
cmp eax, edi
lea eax, [esp + 0x44]
jb 0x4dd625
lea eax, [esp + 0x40]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
cmp eax, ebx
jne 0x4dd68b
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov esi, dword [esp + 0xa0]
push esi
mov ecx, eax
call fcn.004b3c80
mov dword [esp + 0x98], ebx
mov dword [esp + 0x48], 1
jmp 0x4de2b1
cmp esi, ebx
je 0x4dd5ec
lea eax, [ecx + esi*4 - 4]
call fcn.004bbca0
dec esi
mov edi, eax
shl esi, 5
add edi, esi
jmp 0x4dd5ee
cmp esi, ebx
je 0x4dd613
lea eax, [ecx + esi*4 - 4]
call fcn.004bbca0
dec esi
shl esi, 5
add eax, esi
jmp 0x4dd615
cmp eax, 0x2e
ja 0x4dd697
mov esi, 1
jmp 0x4dd6a5
mov ecx, 0x104
cmp ecx, eax
sbb esi, esi
neg esi
add esi, 2
mov ecx, esi
mov ebp, 1
shl ebp, cl
lea edx, [esp + 0x5c]
mov dword [esp + 0x40], esi
mov eax, ebp
shl eax, cl
mov dword [esp + 0x20], ebp
push eax
push edx
mov dword [esp + 0x30], eax
call fcn.004e17b0
mov dword [esp + 0x98], 1
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4dd6fc
call ebx
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0xa4]
push edi
add ecx, 0x1c
push ecx
call fcn.004ae600
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x4dd732
call ebx
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0xac]
lea eax, [ebp*8]
sub eax, ebp
add eax, eax
add eax, eax
push ebx
add ecx, eax
push ecx
mov dword [esp + 0x4c], eax
call fcn.004ae600
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
cmp esi, 1
jne 0x4dd7da
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
ja 0x4dd782
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov esi, dword [esp + 0x68]
mov eax, dword [edx + 0xc]
push ebx
push edi
add esi, 0x54
call eax
push eax
push esi
call fcn.004ae600
lea ecx, [esp + 0x74]
push ecx
call fcn.004ae240
mov eax, dword [esp + 0x4c]
lea ebp, [eax - 1]
xor edx, edx
xor ebx, ebx
lea ecx, [eax - 1]
mov byte [esp + 0x98], 2
mov dword [esp + 0x44], ecx
mov byte [esp + 0x17], 1
test ebp, ebp
jl 0x4de274
mov edi, dword [esp + 0xb0]
jmp 0x4de144
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
ja 0x4dd7ec
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov esi, dword [esp + 0x68]
mov eax, dword [edx + 0x18]
push edi
add esi, 0x38
call eax
push eax
push esi
call fcn.004ae600
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea esi, [ebp + ebp]
add ecx, edx
cmp esi, ecx
jb 0x4dd82f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x18]
lea edx, [esi*8]
sub edx, esi
lea esi, [eax + edx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push ebx
call eax
push eax
push esi
call fcn.004ae600
mov ebx, 3
cmp ebp, ebx
jbe 0x4dd935
mov dword [esp + 0x3c], 0x54
jmp 0x4dd870
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x4dd8a2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
lea edx, [ecx + 0x38]
mov dword [esp + 0x38], edx
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ebx - 2]
cmp edx, eax
jb 0x4dd8d5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
lea eax, [ecx + edi - 0x38]
mov dword [esp + 0x3c], eax
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4dd904
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x38]
lea esi, [ecx + edi]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [esp + 0x40]
push eax
call edx
push eax
push esi
call fcn.004ae600
add ebx, 2
add edi, 0x38
mov dword [esp + 0x3c], edi
cmp ebx, ebp
jb 0x4dd870
mov eax, 1
mov dword [esp + 0x1c], eax
cmp ebp, eax
jbe 0x4ddb98
mov ecx, dword [esp + 0x44]
add ecx, 0x1c
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0x1c
lea esp, [esp]
mov edx, dword [esp + 0x20]
lea ebx, [eax + edx]
mov dword [esp + 0x24], ebx
cmp ebx, dword [esp + 0x28]
jae 0x4ddb76
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edx
jmp 0x4dd994
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, ecx
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x2c], eax
jb 0x4dd9c9
call ebp
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
sub ecx, esi
lea edi, [esi + edx]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4dd9ef
call ebp
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0xac]
add esi, ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
push edi
call edx
mov ebp, eax
mov al, byte [ebp]
mov byte [esi], al
mov edi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
cmp eax, edi
jne 0x4dda21
mov eax, ebx
jmp 0x4dda93
lea ecx, [eax*4]
push ecx
push 0
push ebx
call sub.MSVCR90.dll_memset
push ebx
call dword [sym.imp.MSVCR90.dll_free]
push edi
call fcn.004b4f50
add esp, 0x14
test edi, edi
jne 0x4dda49
xor eax, eax
jmp 0x4dda93
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x4dda93
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 0x4ddcb3
push ebx
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
call ebx
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 8
test eax, eax
je 0x4dda60
mov dword [esi + 8], edi
add edi, edi
add edi, edi
mov dword [esi + 0xc], eax
mov edx, dword [ebp + 0xc]
push edi
push edx
push edi
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
add esp, 0x10
cmp eax, edi
jne 0x4ddabe
mov ecx, ebx
jmp 0x4ddb2d
add eax, eax
add eax, eax
push eax
push 0
push ebx
call sub.MSVCR90.dll_memset
push ebx
call dword [sym.imp.MSVCR90.dll_free]
push edi
call fcn.004b4f50
add esp, 0x14
test edi, edi
jne 0x4ddae3
xor eax, eax
jmp 0x4ddb2b
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x4ddb2b
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 0x4ddcdb
push ebx
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
call ebx
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 8
test eax, eax
je 0x4ddaf8
mov ecx, eax
lea eax, [edi*4]
push eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], edi
mov edx, dword [ebp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], ecx
add eax, ecx
mov ecx, dword [esp + 0x54]
add dword [esp + 0x40], ecx
add dword [esp + 0x44], ecx
add esp, 0x10
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x28]
jb 0x4dd990
mov eax, dword [esp + 0x1c]
mov ecx, 0x38
add dword [esp + 0x38], ecx
add dword [esp + 0x3c], ecx
add eax, 2
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jb 0x4dd960
mov ebp, dword [esp + 0x20]
lea eax, [ebp + ebp*2]
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x28]
jae 0x4dde5b
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x38], ecx
lea ecx, [ebp*8]
sub ecx, ebp
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x44], ecx
lea esi, [ebp + ebp]
sub eax, esi
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
lea esp, [esp]
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov ebx, edi
sub ebx, ecx
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4ddc21
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
lea edx, [esi*8]
sub edx, esi
mov esi, edi
sub esi, ecx
lea ebp, [ecx + edx*4]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x3c], eax
jb 0x4ddc58
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x34]
sub edi, ecx
lea ebx, [edx + ecx]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x4ddc84
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
lea esi, [edx + ecx]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebp
push ebx
call edx
mov ebp, eax
mov al, byte [ebp]
mov byte [esi], al
mov edi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
cmp eax, edi
jne 0x4ddd03
mov ecx, ebx
jmp 0x4ddd75
push 1
push 0x72de18
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x703a28
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x72de18
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x703a28
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x58], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
lea ecx, [eax*4]
push ecx
push 0
push ebx
call sub.MSVCR90.dll_memset
push ebx
call dword [sym.imp.MSVCR90.dll_free]
push edi
call fcn.004b4f50
add esp, 0x14
test edi, edi
jne 0x4ddd2b
xor eax, eax
jmp 0x4ddd73
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x4ddd73
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 0x4dde9d
push ebx
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
call ebx
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 8
test eax, eax
je 0x4ddd40
mov ecx, eax
lea eax, [edi*4]
push eax
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edi
mov edx, dword [ebp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
add esp, 0x10
cmp eax, edi
jne 0x4ddda3
mov eax, ebx
jmp 0x4dde13
add eax, eax
add eax, eax
push eax
push 0
push ebx
call sub.MSVCR90.dll_memset
push ebx
call dword [sym.imp.MSVCR90.dll_free]
push edi
call fcn.004b4f50
add esp, 0x14
test edi, edi
jne 0x4dddc8
xor eax, eax
jmp 0x4dde13
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x4dde13
lea ecx, [ecx]
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 0x4ddec5
push ebx
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
call ebx
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 8
test eax, eax
je 0x4ddde0
mov dword [esi + 0x14], edi
add edi, edi
add edi, edi
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0x18]
push edi
push ecx
push edi
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
add dword [esp + 0x48], ecx
add dword [esp + 0x44], ecx
add esi, esi
add dword [esp + 0x4c], esi
add eax, esi
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x28]
jb 0x4ddbf0
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esp + 0x28]
jae 0x4dd79d
mov ecx, dword [esp + 0x20]
lea ebx, [ebp + 2]
lea eax, [ecx + ebp]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], eax
cmp ebx, eax
jae 0x4de0d0
lea ebp, [ebx*8]
sub ebp, ebx
add ebp, ebp
add ebp, ebp
lea edx, [ebx - 1]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], edx
jmp 0x4ddef8
push 1
push 0x72de18
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x703a28
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x58], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x72de18
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x703a28
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
lea ecx, [ecx]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edi, esi
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x3c], eax
jb 0x4ddf2b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [ecx + ebp - 0x1c]
cmp ebx, eax
jb 0x4ddf52
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
lea esi, [edx + ecx]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xa4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push edi
call eax
mov ebp, eax
mov cl, byte [ebp]
mov byte [esi], cl
mov edi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
cmp eax, edi
jne 0x4ddf85
mov eax, ebx
jmp 0x4ddff5
lea edx, [eax*4]
push edx
push 0
push ebx
call sub.MSVCR90.dll_memset
push ebx
call dword [sym.imp.MSVCR90.dll_free]
push edi
call fcn.004b4f50
add esp, 0x14
test edi, edi
jne 0x4ddfad
xor eax, eax
jmp 0x4ddff5
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x4ddff5
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 0x4de0eb
push ebx
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
call ebx
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 8
test eax, eax
je 0x4ddfc2
mov dword [esi + 8], edi
add edi, edi
add edi, edi
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push edi
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
add esp, 0x10
cmp eax, edi
jne 0x4de020
mov eax, ebx
jmp 0x4de093
lea edx, [eax*4]
push edx
push 0
push ebx
call sub.MSVCR90.dll_memset
push ebx
call dword [sym.imp.MSVCR90.dll_free]
push edi
call fcn.004b4f50
add esp, 0x14
test edi, edi
jne 0x4de048
xor eax, eax
jmp 0x4de093
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
jne 0x4de093
lea ecx, [ecx]
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 0x4de113
push ebx
call dword [sym.imp.MSVCP90.dll_void____cdecl___void____cdecl_std::set_new_handler_void____cdecl___void__]
call ebx
lea eax, [edi*4]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 8
test eax, eax
je 0x4de060
mov dword [esi + 0x14], edi
add edi, edi
add edi, edi
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0x18]
push edi
push ecx
push edi
push eax
call dword [sym.imp.MSVCR90.dll_memcpy_s]
mov eax, dword [esp + 0x34]
add dword [esp + 0x4c], 2
add dword [esp + 0x3c], 0x38
add eax, 2
add esp, 0x10
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x44]
jb 0x4ddef0
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, eax
add ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esp + 0x28]
jb 0x4dde69
jmp 0x4dd79d
push 1
push 0x72de18
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x703a28
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x58], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
push 1
push 0x72de18
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const___int_]
push 0x703a28
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], vtable.std::bad_alloc.0
call sub.MSVCR90.dll__CxxThrowException
jmp 0x4de140
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + 8]
mov esi, ebp
shr esi, 5
cmp esi, eax
jb 0x4de15b
xor al, al
jmp 0x4de171
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + esi*4]
mov ecx, ebp
and ecx, 0x1f
shr eax, cl
and al, 1
movzx eax, al
lea edx, [eax + edx*2]
mov dword [esp + 0x28], edx
cmp esi, dword [edi + 8]
jb 0x4de184
xor al, al
jmp 0x4de193
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi*4]
mov ecx, ebp
and ecx, 0x1f
shr eax, cl
and al, 1
movzx ecx, al
lea ebx, [ecx + ebx*2]
test ebp, ebp
je 0x4de1b3
mov eax, dword [esp + 0x20]
lea ecx, [edx + edx]
cmp ecx, eax
jae 0x4de1b3
lea ecx, [ebx + ebx]
cmp ecx, eax
jb 0x4de26b
mov esi, dword [esp + 0x44]
sub esi, ebp
xor edi, edi
mov dword [esp + 0x44], ebp
nop
test edx, edx
jne 0x4de1c8
test ebx, ebx
je 0x4de1da
test dl, 1
jne 0x4de1da
test bl, 1
jne 0x4de1da
shr edx, 1
shr ebx, 1
dec esi
inc edi
jmp 0x4de1c0
cmp byte [esp + 0x17], 0
mov dword [esp + 0x28], edx
je 0x4de2cf
mov ecx, dword [esp + 0x40]
shl ebx, cl
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov eax, 0x92492493
add ebx, edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4de216
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x68]
lea ecx, [ebx*8]
sub ecx, ebx
lea eax, [edx + ecx*4]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.004ae600
mov byte [esp + 0x17], 0
mov esi, dword [esp + 0x18]
test edi, edi
je 0x4de25e
mov edi, edi
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x74]
push ecx
mov ecx, esi
dec edi
call edx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004ae600
test edi, edi
jne 0x4de240
mov edi, dword [esp + 0xb0]
xor ebx, ebx
mov dword [esp + 0x28], ebx
sub ebp, 1
jns 0x4de140
mov esi, dword [esp + 0xa0]
push esi
lea ecx, [esp + 0x78]
call fcn.004b3c80
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x4c], 1
mov byte [esp + 0x9c], 1
call fcn.004ae410
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x9c], 0
call fcn.004b1790
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x14
test esi, esi
je 0x4de2f7
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x74]
push eax
dec esi
call edx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004ae600
test esi, esi
jne 0x4de2d3
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x4de303
test ebx, ebx
je 0x4de236
mov ecx, dword [esp + 0x40]
shl ebx, cl
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov eax, 0x92492493
add ebx, edx
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x4de330
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [ebx*8]
sub eax, ebx
lea eax, [ecx + eax*4]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call edx
jmp 0x4de23a