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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov dword [ebp - 0x20], ebx
and dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
not ecx
mov dword [ebp - 4], edx
and ecx, eax
mov dword [ebp - 8], 0x400
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
shr ecx, 1
xor edi, edi
and ecx, eax
xor esi, esi
push 0x28
pop eax
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], eax
cmp ecx, eax
jle 0x4786e6
add ecx, 7
and ecx, 0xfffffff8
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
and dword [eax], edx
mov eax, dword [ebp + 8]
test eax, eax
je 0x478762
cmp byte [eax], dl
je 0x478762
mov eax, dword [ebx + 8]
inc eax
mov dword [ebp - 4], eax
add eax, eax
push eax
call fcn.004720ab
mov esi, eax
pop ecx
test esi, esi
jne 0x478714
push 7
pop eax
jmp 0x4789a0
push 9
push str.:memory:
push dword [ebp + 8]
call fcn.004ed97b
add esp, 0xc
mov byte [esi], 0
test eax, eax
jne 0x478736
mov dword [ebp - 0xc], 1
jmp 0x478746
push esi
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
call dword [ebx + 0x24]
add esp, 0x10
mov edi, eax
mov ecx, esi
call fcn.00473cc8
mov edx, eax
mov dword [ebp - 4], edx
test edi, edi
jne 0x478784
lea ecx, [edx + 8]
cmp ecx, dword [ebx + 8]
jle 0x478762
push 0xe
jmp 0x478783
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x10]
add eax, 7
add ecx, 0x75
and eax, 0xfffffff8
add ecx, edx
lea ecx, [eax + ecx*2]
call fcn.00472479
mov ecx, eax
test ecx, ecx
jne 0x478792
push 7
pop edi
push esi
call fcn.004722cd
pop ecx
mov eax, edi
jmp 0x4789a0
mov edi, ecx
add ecx, 0xb0
mov dword [edi + 0xa8], ecx
add ecx, 0x30
mov dword [edi + 0x38], ecx
mov eax, dword [ebx + 4]
add eax, 7
and eax, 0xfffffff8
add ecx, eax
mov dword [edi + 0x40], ecx
add ecx, dword [ebp - 0x10]
mov dword [edi + 0x3c], ecx
add ecx, dword [ebp - 0x10]
mov dword [edi + 0x84], ecx
test esi, esi
je 0x478827
mov edx, dword [ebp - 4]
push edx
push esi
push ecx
lea eax, [edx + 1]
add eax, ecx
mov dword [edi + 0x88], eax
call fcn.004db0a0
add esp, 0xc
push dword [ebp - 4]
push esi
push dword [edi + 0x88]
call fcn.004db0a0
mov ecx, dword [edi + 0x88]
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [str._journal]
mov dword [ecx + edx], eax
mov eax, dword [0x52726c]
mov dword [ecx + edx + 4], eax
mov eax, dword [edi + 0x84]
cmp byte [eax], 0
jne 0x478820
mov eax, dword [edi + 0x88]
mov byte [eax], 0
push esi
call fcn.004722cd
pop ecx
mov eax, dword [ebp + 8]
mov dword [edi], ebx
mov ebx, dword [ebp + 0x14]
mov dword [edi + 0x78], ebx
test eax, eax
je 0x478898
cmp byte [eax], 0
je 0x478898
cmp dword [ebp - 0xc], 0
jne 0x478898
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x20]
and ebx, 0x7f1f
push ebx
push dword [edi + 0x38]
push dword [edi + 0x84]
push eax
call dword [eax + 0x18]
mov ebx, dword [ebp + 8]
mov esi, eax
add esp, 0x14
and ebx, 1
test esi, esi
jne 0x4788b9
test ebx, ebx
jne 0x4788a6
mov ecx, edi
call fcn.00477cc6
cmp dword [edi + 0x70], 0x400
jbe 0x4788a6
mov eax, 0x2000
cmp dword [edi + 0x70], eax
jbe 0x478892
mov dword [ebp - 8], eax
jmp 0x4788a6
movzx eax, word [edi + 0x70]
jmp 0x47888d
xor eax, eax
mov byte [edi + 0xe], 4
inc eax
mov ecx, eax
and ebx, eax
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea edx, [ebp - 8]
mov ecx, edi
call fcn.0047812a
mov esi, eax
pop ecx
test esi, esi
je 0x4788cf
mov ecx, dword [edi + 0x38]
call fcn.00471974
push edi
call fcn.004722cd
pop ecx
mov eax, esi
jmp 0x4789a0
mov esi, dword [edi + 0xa8]
push 0x30
push 0
push esi
call fcn.004db6f0
movzx eax, word [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, 0x4785db
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], edi
push 0x50
pop eax
mov dword [esi + 0x18], eax
xor eax, eax
test ecx, ecx
mov dword [esi + 0x10], 0x64
sete al
mov dword [esi + 0x1c], eax
xor eax, eax
test ecx, ecx
cmove eax, edx
cmp dword [ebp + 0x10], 0
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x18]
mov byte [edi + 6], al
je 0x47892a
test ebx, ebx
je 0x47892a
xor eax, eax
inc eax
jmp 0x47892c
xor eax, eax
mov byte [edi + 7], al
mov eax, dword [ebp - 0x14]
test al, al
mov byte [edi + 0xb], al
mov byte [edi + 4], al
mov byte [edi + 0x12], al
mov byte [edi + 8], al
sete al
or dword [edi + 0xa0], 0xffffffff
or dword [edi + 0xa4], 0xffffffff
mov byte [edi + 9], al
push 0x50
mov byte [edi + 0x15], cl
mov byte [edi + 0xd], cl
mov ecx, edi
pop eax
mov dword [edi + 0x80], 0x3fffffff
mov byte [edi + 0xc], bl
mov byte [edi + 0xa], 2
mov word [edi + 0x74], ax
call fcn.00477cc6
cmp dword [ebp - 0x18], 0
jne 0x478985
mov byte [edi + 5], 2
jmp 0x47898f
cmp dword [ebp - 0xc], 0
je 0x47898f
mov byte [edi + 5], 4
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x94], 0x47aad8
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret