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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, ecx
mov ecx, eax
shr eax, 1
push ebp
and eax, 1
push esi
not ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
push edi
xor edi, edi
and ecx, 1
xor ebp, ebp
cmp eax, 0x28
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], 0x400
jle 0x480d99
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 0x14], eax
jmp 0x480da5
mov dword [esp + 0x14], 0x28
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov dword [ecx], edi
mov ecx, dword [esp + 0x38]
cmp ecx, edi
je 0x480e73
cmp byte [ecx], 0
je 0x480e73
mov esi, dword [ebx + 8]
inc esi
lea edx, [esi + esi]
push edx
call fcn.00478b20
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x480fbe
mov edx, dword [esp + 0x38]
mov edi, str.:memory:
mov eax, edx
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x480e05
test cl, cl
je 0x480e01
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x480e05
add eax, 2
add edi, 2
test cl, cl
jne 0x480de5
xor eax, eax
jmp 0x480e0a
sbb eax, eax
sbb eax, 0xffffffff
mov byte [ebp], 0
test eax, eax
jne 0x480e20
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], 1
jmp 0x480e2e
mov eax, dword [ebx + 0x24]
push ebp
push esi
push edx
push ebx
call eax
add esp, 0x10
mov esi, eax
cmp byte [ebp], 0
mov edi, ebp
je 0x480e3c
inc edi
cmp byte [edi], 0
jne 0x480e36
sub edi, ebp
and edi, 0x3fffffff
test esi, esi
jne 0x480e5c
lea ecx, [edi + 8]
cmp ecx, dword [ebx + 8]
jle 0x480e6f
mov dword [esp + 0x20], 0xe
mov esi, dword [esp + 0x20]
push ebp
call fcn.00478e00
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 4]
add edx, 7
add eax, edi
and edx, 0xfffffff8
lea eax, [edx + eax*2 + 0xea]
push eax
mov dword [esp + 0x24], eax
call fcn.00478b20
mov esi, eax
add esp, 4
test esi, esi
je 0x480fb5
mov eax, dword [esp + 0x20]
push eax
push 0
push esi
call fcn.004cc620
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 + 0x20]
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 ebp, ebp
je 0x480f3d
push edi
lea edx, [eax + edi + 1]
push ebp
push eax
mov dword [esi + 0x88], edx
call fcn.004cf8d0
mov eax, dword [esi + 0x88]
add esp, 0xc
push edi
push ebp
push eax
call fcn.004cf8d0
mov eax, dword [esi + 0x88]
mov ecx, dword [str._journal]
mov dword [eax + edi], ecx
mov edx, dword [0x4fd608]
mov dword [eax + edi + 4], edx
mov eax, dword [esi + 0x84]
add esp, 0xc
cmp byte [eax], 0
jne 0x480f34
mov ecx, dword [esi + 0x88]
mov byte [ecx], 0
push ebp
call fcn.00478e00
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esi], ebx
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x480fd4
cmp byte [ecx], 0
je 0x480fd4
cmp dword [esp + 0x1c], 0
jne 0x480fd4
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x84]
lea edi, [esp + 0x38]
push edi
push eax
push ecx
push edx
mov edx, dword [ebx + 0x18]
push ebx
mov dword [esp + 0x4c], 0
call edx
mov ebx, dword [esp + 0x4c]
mov edi, eax
add esp, 0x14
and ebx, 1
test edi, edi
jne 0x480ffe
test ebx, ebx
jne 0x480fe5
call fcn.00480050
mov eax, dword [esi + 0x70]
cmp eax, 0x400
jbe 0x480fe5
cmp eax, 0x2000
jbe 0x480fcb
mov dword [esp + 0x18], 0x2000
jmp 0x480fe5
push ebp
call fcn.00478e00
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
movzx eax, ax
mov dword [esp + 0x18], eax
jmp 0x480fe5
and eax, 1
mov dword [esp + 0x24], 1
mov byte [esi + 0xe], 4
mov ebx, eax
or ebp, 0xffffffff
lea ecx, [esp + 0x18]
push ebp
push ecx
mov edi, esi
call fcn.004805a0
mov edi, eax
add esp, 8
test edi, edi
je 0x481029
mov ebx, dword [esi + 0x38]
mov eax, dword [ebx]
test eax, eax
je 0x481016
mov edx, dword [eax + 4]
push ebx
call edx
add esp, 4
mov dword [ebx], 0
push esi
call fcn.00478e00
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edi, dword [esi + 0xa8]
push 0x30
push 0
push edi
call fcn.004cc620
movzx eax, word [esp + 0x24]
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dword [edi + 0x14], eax
add esp, 0xc
test ecx, ecx
sete dl
mov eax, ecx
neg eax
sbb eax, eax
not eax
and eax, 0x480c80
cmp dword [esp + 0x2c], 0
mov dword [edi + 0x1c], edx
mov dl, byte [esp + 0x28]
mov dword [edi + 0x18], 0x50
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], dl
je 0x48108c
test ebx, ebx
je 0x48108c
mov eax, 1
jmp 0x48108e
xor eax, eax
mov byte [esi + 7], al
mov al, byte [esp + 0x24]
test al, al
mov byte [esi + 0x15], cl
mov byte [esi + 0xb], al
mov byte [esi + 4], al
mov byte [esi + 0x12], al
mov byte [esi + 0xd], cl
mov byte [esi + 8], al
sete al
mov ecx, 0x50
mov dword [esi + 0x80], 0x3fffffff
mov byte [esi + 0xc], bl
mov byte [esi + 9], al
mov byte [esi + 0xa], 2
mov word [esi + 0x74], cx
mov dword [esi + 0xa0], ebp
mov dword [esi + 0xa4], ebp
call fcn.00480050
cmp dword [esp + 0x28], 0
jne 0x4810e7
mov byte [esi + 5], 2
jmp 0x4810f2
cmp dword [esp + 0x1c], 0
je 0x4810f2
mov byte [esi + 5], 4
mov edx, dword [esp + 0x34]
pop edi
mov dword [esi + 0x94], 0x4839d0
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret