Function at 0x47c883
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 0x47c8d9
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 0x47c955
cmp byte [eax], dl
je 0x47c955
mov eax, dword [ebx + 8]
inc eax
mov dword [ebp - 4], eax
add eax, eax
push eax
call fcn.0047629e
mov esi, eax
pop ecx
test esi, esi
jne 0x47c907
push 7
pop eax
jmp 0x47cb93
push 9
push str.:memory:
push dword [ebp + 8]
call fcn.004f1287
add esp, 0xc
mov byte [esi], 0
test eax, eax
jne 0x47c929
mov dword [ebp - 0xc], 1
jmp 0x47c939
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.00477ebb
mov edx, eax
mov dword [ebp - 4], edx
test edi, edi
jne 0x47c977
lea ecx, [edx + 8]
cmp ecx, dword [ebx + 8]
jle 0x47c955
push 0xe
jmp 0x47c976
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.0047666c
mov ecx, eax
test ecx, ecx
jne 0x47c985
push 7
pop edi
push esi
call fcn.004764c0
pop ecx
mov eax, edi
jmp 0x47cb93
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 0x47ca1a
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.004de9a0
add esp, 0xc
push dword [ebp - 4]
push esi
push dword [edi + 0x88]
call fcn.004de9a0
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 [0x52be84]
mov dword [ecx + edx + 4], eax
mov eax, dword [edi + 0x84]
cmp byte [eax], 0
jne 0x47ca13
mov eax, dword [edi + 0x88]
mov byte [eax], 0
push esi
call fcn.004764c0
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 0x47ca8b
cmp byte [eax], 0
je 0x47ca8b
cmp dword [ebp - 0xc], 0
jne 0x47ca8b
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 0x47caac
test ebx, ebx
jne 0x47ca99
mov ecx, edi
call fcn.0047beb9
cmp dword [edi + 0x70], 0x400
jbe 0x47ca99
mov eax, 0x2000
cmp dword [edi + 0x70], eax
jbe 0x47ca85
mov dword [ebp - 8], eax
jmp 0x47ca99
movzx eax, word [edi + 0x70]
jmp 0x47ca80
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.0047c31d
mov esi, eax
pop ecx
test esi, esi
je 0x47cac2
mov ecx, dword [edi + 0x38]
call fcn.00475b69
push edi
call fcn.004764c0
pop ecx
mov eax, esi
jmp 0x47cb93
mov esi, dword [edi + 0xa8]
push 0x30
push 0
push esi
call fcn.004deff0
movzx eax, word [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, 0x47c7ce
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 0x47cb1d
test ebx, ebx
je 0x47cb1d
xor eax, eax
inc eax
jmp 0x47cb1f
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.0047beb9
cmp dword [ebp - 0x18], 0
jne 0x47cb78
mov byte [edi + 5], 2
jmp 0x47cb82
cmp dword [ebp - 0xc], 0
je 0x47cb82
mov byte [edi + 5], 4
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x94], 0x47eccb
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret