Function at 0x480bc0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5cea70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
push ebx
push ebp
push esi
mov ebp, ecx
mov ecx, dword [esp + 0x40]
push edi
sub esp, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0x24]
add ecx, 0x2e0
call fcn.004dbcb0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x480c51
mov ecx, dword [ebp + 0x24]
call fcn.004d63c0
mov dword [esi + 0xd0], 1
mov eax, esi
jmp 0x480e26
mov eax, 0x5e2838
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0x24]
xor edi, edi
mov byte [esp + 0x30], 1
mov ecx, dword [eax + 0x800]
cmp ecx, ebx
jle 0x480d09
mov ecx, dword [eax + 0x7fc]
mov esi, dword [ecx + edi*4]
mov eax, dword [esi + 0x10c]
cmp eax, 3
jne 0x480cc2
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
neg eax
sbb eax, eax
and al, 0xfe
add eax, 2
mov dword [esi + 0x10c], eax
jmp 0x480cfd
cmp eax, 1
jne 0x480cd6
mov eax, dword [esp + 0x40]
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.0040c9d0
cmp dword [esi + 0x10c], 2
jne 0x480cfd
mov ebp, dword [esp + 0x1c]
push 0xffffffffffffffff
lea ecx, [ebp + 1]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0046d900
mov edx, dword [esp + 0x18]
mov dword [edx + ebp*4], esi
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x24]
inc edi
cmp edi, dword [eax + 0x800]
jl 0x480c96
lea eax, [esp + 0x38]
push 0x480ba0
push eax
call fcn.004ed600
lea ecx, [esp + 0x1c]
push 0x480ba0
push ecx
call fcn.004ed600
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov esi, eax
add eax, edx
lea ecx, [esp + 0x38]
push 0xffffffffffffffff
push eax
call fcn.0046d900
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edx, ebx
lea eax, [eax + esi*4]
je 0x480d66
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x480d55
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x40], ebx
je 0x480de4
mov ecx, dword [ebp + 0x24]
call fcn.004d63c0
mov ecx, dword [esp + 0x3c]
mov edi, 3
mov ebp, 0x5e2838
mov edx, dword [ecx]
mov dword [edx + 0xd0], 1
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [eax + 0x10c], edi
add eax, 0xc0
mov eax, dword [esp + 0x3c]
mov esi, dword [eax]
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x30], 2
cmp ecx, ebx
je 0x480dc3
push ecx
call sub.mfc42u.dll_operatordelete
mov eax, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x14], 0x5e262c
mov dword [esp + 0x38], ebp
cmp eax, ebx
mov dword [esp + 0x30], edi
je 0x480de0
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov eax, esi
jmp 0x480e26
mov esi, 0x5e2838
mov dword [esp + 0x14], esi
cmp ecx, ebx
mov byte [esp + 0x30], 4
je 0x480dff
push ecx
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x14], 0x5e262c
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], 5
cmp eax, ebx
je 0x480e24
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x30