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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, ecx
mov ecx, eax
shr eax, 1
push ebp
and eax, 1
push esi
not ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
push edi
xor edi, edi
and ecx, 1
xor ebp, ebp
cmp eax, 0x28
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0x400
jle 0x4c8a19
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 0x10], eax
jmp 0x4c8a25
mov dword [esp + 0x10], 0x28
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [ecx], edi
mov ecx, dword [esp + 0x34]
cmp ecx, edi
je 0x4c8af3
cmp byte [ecx], 0
je 0x4c8af3
mov esi, dword [ebx + 8]
inc esi
lea edx, [esi + esi]
push edx
call fcn.004b9650
mov edi, eax
add esp, 4
test edi, edi
je 0x4c8c24
mov edx, dword [esp + 0x34]
mov ebp, str.:memory:
mov eax, edx
mov cl, byte [eax]
cmp cl, byte [ebp]
jne 0x4c8a86
test cl, cl
je 0x4c8a82
mov cl, byte [eax + 1]
cmp cl, byte [ebp + 1]
jne 0x4c8a86
add eax, 2
add ebp, 2
test cl, cl
jne 0x4c8a65
xor eax, eax
jmp 0x4c8a8b
sbb eax, eax
sbb eax, 0xffffffff
mov byte [edi], 0
test eax, eax
jne 0x4c8aa0
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], 1
jmp 0x4c8aae
mov eax, dword [ebx + 0x24]
push edi
push esi
push edx
push ebx
call eax
add esp, 0x10
mov esi, eax
cmp byte [edi], 0
mov ebp, edi
je 0x4c8abc
inc ebp
cmp byte [ebp], 0
jne 0x4c8ab5
sub ebp, edi
and ebp, 0x3fffffff
test esi, esi
jne 0x4c8adc
lea ecx, [ebp + 8]
cmp ecx, dword [ebx + 8]
jle 0x4c8aef
mov dword [esp + 0x1c], 0xe
mov esi, dword [esp + 0x1c]
push edi
call fcn.004af060
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 4]
add edx, 7
add eax, ebp
and edx, 0xfffffff8
lea eax, [edx + eax*2 + 0xea]
push eax
mov dword [esp + 0x20], eax
call fcn.004b9650
mov esi, eax
add esp, 4
test esi, esi
je 0x4c8c1b
mov eax, dword [esp + 0x1c]
push eax
push 0
push esi
call fcn.0052b590
lea eax, [esi + 0xb0]
mov dword [esi + 0xa8], eax
add eax, 0x30
mov dword [esi + 0x38], eax
mov ecx, dword [ebx + 4]
add ecx, 7
and ecx, 0xfffffff8
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x40], eax
add eax, ecx
mov dword [esi + 0x3c], eax
add eax, ecx
add esp, 0xc
mov dword [esi + 0x84], eax
test edi, edi
je 0x4c8ba3
push ebp
lea edx, [eax + ebp + 1]
push edi
push eax
mov dword [esi + 0x88], edx
call fcn.0052c7c0
mov eax, dword [esi + 0x88]
push ebp
push edi
push eax
call fcn.0052c7c0
mov eax, dword [esi + 0x88]
mov ecx, dword [str._journal]
mov dword [eax + ebp], ecx
mov edx, dword [0x582d84]
push edi
mov dword [eax + ebp + 4], edx
call fcn.004af060
add esp, 0x1c
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov dword [esi], ebx
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x4c8c3a
cmp byte [ecx], 0
je 0x4c8c3a
cmp dword [esp + 0x18], 0
jne 0x4c8c3a
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x84]
lea edi, [esp + 0x34]
push edi
push eax
mov eax, dword [ebx + 0x18]
push ecx
push edx
push ebx
mov dword [esp + 0x48], 0
call eax
mov ebx, dword [esp + 0x48]
mov edi, eax
add esp, 0x14
and ebx, 1
test edi, edi
jne 0x4c8c62
test ebx, ebx
jne 0x4c8c4b
call fcn.004b2270
mov eax, dword [esi + 0x70]
cmp eax, 0x400
jbe 0x4c8c4b
cmp eax, 0x2000
jbe 0x4c8c31
mov dword [esp + 0x14], 0x2000
jmp 0x4c8c4b
push edi
call fcn.004af060
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x1c
ret
movzx ecx, ax
mov dword [esp + 0x14], ecx
jmp 0x4c8c4b
and eax, 1
mov dword [esp + 0x20], 1
mov byte [esi + 0xe], 4
mov ebx, eax
lea edx, [esp + 0x14]
push 0xffffffffffffffff
push edx
mov edi, esi
call fcn.004bb290
mov edi, eax
add esp, 8
test edi, edi
je 0x4c8c8d
mov ebx, dword [esi + 0x38]
mov eax, dword [ebx]
test eax, eax
je 0x4c8c7a
mov eax, dword [eax + 4]
push ebx
call eax
add esp, 4
mov dword [ebx], 0
push esi
call fcn.004af060
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebp, dword [esp + 0x38]
mov edi, dword [esi + 0xa8]
push 0x30
push 0
add ebp, 7
push edi
and ebp, 0xfffffff8
call fcn.0052b590
movzx ecx, word [esp + 0x20]
xor edx, edx
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x24]
add esp, 0xc
test ecx, ecx
sete dl
mov eax, ecx
neg eax
sbb eax, eax
not eax
and eax, 0x4c88f0
cmp dword [esp + 0x28], 0
mov dword [edi + 0x1c], edx
mov edx, dword [esp + 0x24]
mov dword [edi + 0x18], ebp
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], dl
je 0x4c8cf6
test ebx, ebx
je 0x4c8cf6
mov eax, 1
jmp 0x4c8cf8
xor eax, eax
mov byte [esi + 7], al
mov al, byte [esp + 0x20]
mov byte [esi + 0x15], cl
mov dword [esi + 0x80], 0x3fffffff
mov byte [esi + 0xb], al
mov byte [esi + 4], al
mov byte [esi + 0x12], al
mov byte [esi + 0xd], cl
mov byte [esi + 0xc], bl
test al, al
jne 0x4c8d27
test edx, edx
je 0x4c8d27
xor eax, eax
jmp 0x4c8d2c
mov eax, 1
test al, al
sete cl
mov byte [esi + 8], al
or eax, 0xffffffff
mov byte [esi + 9], cl
mov byte [esi + 0xa], 2
mov word [esi + 0x74], bp
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
call fcn.004b2270
cmp dword [esp + 0x18], 0
je 0x4c8d5e
mov byte [esi + 5], 4
mov edx, dword [esp + 0x30]
pop edi
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret