Function at 0x4c77f0
Capabilities:
Access peb ldr_data

Disassembly:
add dword [eax], eax
add byte [eax], al
mov eax, dword [esp + 0x90]
cmp eax, edi
mov dword [esp + 0x94], edi
jle 0x4c78ad
jmp 0x4c780e
xor edi, edi
mov edx, dword [esp + 0x94]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x68]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
call dword [0x59706c]
test eax, eax
je 0x4c7864
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x3c]
push ecx
push edx
call dword [0x597748]
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub ecx, edi
sub eax, edx
jmp 0x4c786c
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x94]
test edx, edx
jle 0x4c787e
mov edi, dword [ebp + 0x54]
add dword [esp + 0x14], edi
mov edi, dword [esp + 0x14]
add edi, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x14], edi
jg 0x4c7894
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x90]
inc edx
cmp edx, eax
mov dword [esp + 0x94], edx
jl 0x4c780c
xor edi, edi
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], edi
push ecx
mov ecx, ebp
call 0x5cebb3
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x94], esp
push edx
call 0x5cd481
mov ecx, dword [esp + 0x80]
mov eax, dword [ebp]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, ebp
call dword [eax + 0xbc]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp eax, edx
jle 0x4c7900
mov edx, eax
mov ecx, dword [ebp + 0x58]
mov eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x34], edx
sub eax, edi
mov dword [esp + 0x38], ecx
sub eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x80]
sar edi, 1
add edi, eax
mov eax, dword [ebp + 0x5c]
test al, 4
je 0x4c7969
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x84]
sub eax, ebp
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ebp
cmp ebp, eax
jle 0x4c7980
mov eax, ebp
jmp 0x4c7980
test al, 8
je 0x4c7979
mov eax, dword [esp + 0x8c]
sub eax, ecx
dec eax
jmp 0x4c7980
mov eax, dword [esp + 0x84]
push eax
lea eax, [esp + 0x30]
push edi
mov edi, dword [0x59775c]
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, esi
mov ebp, dword [esp + 0x38]
push 0
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 8], eax
sub eax, ecx
mov dword [edx + 0xc], ebp
mov edx, dword [esp + 0x18]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call edi
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebp, ebx
mov dword [ebp], edx
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0xc], ecx
sub ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
mov eax, dword [esp + 0x34]
sub eax, edx
mov edx, dword [esp + 0x1c]
sub eax, edx
push ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call edi
mov edx, dword [esi]
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x18]
add edx, ebp
add eax, edi
mov dword [esi + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx]
mov eax, dword [esp + 0x20]
add ecx, edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], ecx
add edx, eax
lea ecx, [esp + 0x10]
mov dword [ebx + 0xc], edx
mov dword [esp + 0x74], 0xffffffff
call 0x5cd70c
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret 0x1c