Function at 0x45cd70
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, eax
mov eax, dword [ebx + 0x34]
push edi
call fcn.00471460
mov ebp, eax
mov dword [esi], ebp
mov eax, dword [ebx + 0x30]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov ecx, dword [ebx + 0x34]
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [ebx + 0x30], esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov edx, dword [ebx + 0x34]
push eax
push edx
xor edi, edi
call fcn.0046c400
mov dword [esi + 4], eax
xor edx, edx
mov cl, 0x20
mov byte [eax + 7], cl
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x5d8], edx
mov dword [esi + 0x14], edx
mov eax, dword [ebx + 0x40]
mov dword [ebp + 0x20], eax
or byte [eax + 5], cl
mov eax, dword [0x5eee10]
add esp, 8
cmp eax, edx
mov byte [ebp + 0x4f], 2
je 0x45cf3d
mov edi, dword [0x5eee14]
sub edi, dword [eax + 0xc]
xor ecx, ecx
sar edi, 2
cmp dword [eax + 0x3c], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
jle 0x45ce86
xor edi, edi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, edx
mov edx, dword [esp + 0x1c]
cmp edx, dword [ecx + 4]
jle 0x45ce6b
cmp edx, dword [ecx + 8]
jg 0x45ce6b
mov eax, dword [ecx]
mov ebx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
call fcn.0045c690
mov ecx, dword [ebp + 0x18]
add dword [esp + 0x14], 1
mov eax, dword [0x5eee10]
mov ebx, dword [esp + 0x28]
mov dword [edi + ecx + 4], 0
mov edx, dword [ebp + 0x18]
add esp, 4
mov dword [edi + edx + 8], 0xffffffff
add edi, 0xc
mov ecx, dword [esp + 0x18]
add dword [esp + 0x14], 0xc
add ecx, 1
cmp ecx, dword [eax + 0x3c]
mov dword [esp + 0x18], ecx
jl 0x45ce1a
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp dword [eax + 0x44], edx
je 0x45ce96
cmp ecx, edx
jle 0x45ce96
mov edi, 1
jmp 0x45ce98
xor edi, edi
mov dword [ebp + 0x44], edi
mov dword [esi + 0x34], ecx
mov dword [esi + 0x24], ecx
mov cl, byte [eax + 0x4c]
mov byte [ebp + 0x4c], cl
movzx edi, byte [ebp + 0x4c]
movzx ecx, cl
add edi, edi
add edi, edi
mov dword [ebp + 0x28], ecx
mov ebx, dword [ebx + 0x34]
jne 0x45cebe
xor ecx, ecx
jmp 0x45cf03
cmp edi, 0xfffffffd
jb 0x45cece
push str.memory_allocation_error:_block_too_big
push ebx
call fcn.00455f40
push edx
push edx
mov eax, edi
call fcn.00475e00
add esp, 8
test eax, eax
jne 0x45cef0
test ebx, ebx
je 0x45ceec
lea edx, [eax + 4]
mov ecx, ebx
jmp 0x450590
xor ecx, ecx
jmp 0x45cefc
test ebx, ebx
je 0x45cefa
mov ebx, dword [ebx + 0x10]
add dword [ebx + 0x3c], edi
mov ecx, eax
mov eax, dword [0x5eee10]
xor edx, edx
mov dword [ebp + 0x1c], ecx
xor ecx, ecx
cmp byte [eax + 0x4c], cl
jbe 0x45cf3d
add esi, 0x48
mov edi, dword [eax + 0x1c]
mov edi, dword [edi + ecx*4]
mov ebx, dword [ebp + 0x1c]
mov dword [ebx + ecx*4], edi
mov dword [esi - 4], 0xffffffff
mov dword [esi], 0xffffffff
mov dword [esi - 0x10], edx
mov dword [esi - 0xc], edx
movzx edi, byte [eax + 0x4c]
add ecx, 1
add esi, 0x14
cmp ecx, edi
jl 0x45cf10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret