Function at 0x51d1b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598628
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push 0x14
mov dword [ebp - 0x154], edi
mov dword [edi + 0x18], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x51d46b
mov dword [edi + 0x14], eax
mov dword [eax], eax
mov eax, dword [edi + 0x14]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x14]
mov dword [eax + 8], eax
mov eax, dword [edi + 0x14]
mov byte [eax + 0x10], 1
mov ecx, dword [edi + 0x14]
mov byte [ecx + 0x11], 1
push 1
lea eax, [edi + 0x40]
mov dword [ebp - 4], ebx
call fcn.004fa870
mov eax, dword [0x6112a8]
cmp eax, ebx
jle 0x51d24f
shl eax, 0x14
mov dword [edi], eax
cmp eax, 0x100000
jge 0x51d257
mov dword [edi], 0x100000
jmp 0x51d264
mov dword [edi], 0x4000000
jmp 0x51d264
cmp eax, 0x40000000
jle 0x51d264
mov dword [edi], 0x40000000
mov eax, 0x1987ba97
mul dword [edi]
mov esi, edx
shr esi, 0xb
xor ecx, ecx
mov eax, esi
mov edx, 0x5038
mul edx
seto cl
push 0x6073b0
mov dword [edi], esi
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005965b7
add esp, 8
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x51d2cd
push 0x51d4c0
push 0x51d4a0
push esi
lea ebx, [eax + 4]
push 0x5038
push ebx
mov dword [eax], esi
call fcn.00596513
mov eax, ebx
xor ebx, ebx
jmp 0x51d2cf
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x51d3f6
push str.unable_to_allocate_Unicode_index_cache
mov eax, 0x9cfe
lea ecx, [ebp - 0x14c]
call fcn.005064b0
mov esi, eax
mov eax, dword [edi]
imul eax, eax, 0x5038
push eax
push str.bytes
push str._s___d_
call fcn.00506600
mov eax, dword [edi]
push eax
push str.blocks
push str._s___d_
call fcn.00506600
add esp, 0x18
lea esi, [ebp - 0x14c]
call fcn.00506520
xor ecx, ecx
mov eax, 0x33
mov edx, 0x5038
mul edx
seto cl
push 0x6073b0
mov dword [edi], 0x33
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005965b7
add esp, 8
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x51d392
push 0x51d4c0
push 0x51d4a0
push 0x33
lea esi, [eax + 4]
push 0x5038
push esi
mov dword [eax], 0x33
call fcn.00596513
jmp 0x51d394
xor esi, esi
mov byte [ebp - 4], 1
mov dword [edi + 4], esi
cmp esi, ebx
jne 0x51d3f6
push str.unable_to_allocate_minimum_Unicode_index_cache
mov eax, 0x9cff
lea ecx, [ebp - 0x14c]
call fcn.005064b0
mov ecx, dword [edi]
imul ecx, ecx, 0x5038
push ecx
push str.bytes
mov esi, eax
push str._s___d_
call fcn.00506600
mov edx, dword [edi]
push edx
push str.blocks
push str._s___d_
call fcn.00506600
add esp, 0x18
lea esi, [ebp - 0x14c]
call fcn.00506520
push 1
call dword [sym.imp.MSVCR100.dll_exit]
cmp dword [edi + 4], ebx
je 0x51d44e
xor esi, esi
cmp dword [edi], ebx
jle 0x51d44e
xor eax, eax
mov ecx, dword [edi + 4]
mov dword [eax + ecx + 0x1c], ebx
mov edx, dword [edi + 4]
mov dword [eax + edx + 8], ebx
mov ecx, dword [edi + 4]
mov dword [eax + ecx + 0x10], ebx
mov dword [eax + ecx + 0x14], ebx
mov ecx, dword [edi + 4]
mov dword [eax + ecx + 0x18], ebx
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
add ecx, eax
mov dword [ecx + 4], edx
mov dword [ecx], ebx
mov edx, dword [edi + 0xc]
cmp edx, ebx
je 0x51d439
mov dword [edx], ecx
mov dword [edi + 0xc], ecx
cmp dword [edi + 8], ebx
jne 0x51d444
mov dword [edi + 8], ecx
inc esi
add eax, 0x5038
cmp esi, dword [edi]
jl 0x51d403
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x150], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x5f190c
lea ecx, [ebp - 0x160]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3