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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, eax
not ecx
and ecx, 1
shr eax, 1
push ebx
and eax, 1
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0x400
cmp eax, 0x28
jle 0x475155
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 4], eax
jmp 0x47515f
mov dword [ebp - 4], 0x28
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx], edi
mov edx, dword [ebp + 0x10]
cmp edx, edi
je 0x475243
cmp byte [edx], bl
je 0x475243
mov esi, dword [ecx + 8]
inc esi
lea eax, [esi + esi]
push eax
call fcn.0046c000
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x475391
mov edx, dword [ebp + 0x10]
mov edi, str.:memory:
mov eax, edx
jmp 0x4751a0
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x4751c0
test cl, cl
je 0x4751bc
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x4751c0
add eax, 2
add edi, 2
test cl, cl
jne 0x4751a0
xor eax, eax
jmp 0x4751c5
sbb eax, eax
sbb eax, 0xffffffff
mov byte [ebx], 0
test eax, eax
jne 0x4751d8
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], 1
jmp 0x4751e9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
push ebx
push esi
push edx
push eax
call ecx
add esp, 0x10
mov esi, eax
cmp byte [ebx], 0
mov edi, ebx
je 0x4751f6
inc edi
cmp byte [edi], 0
jne 0x4751f0
sub edi, ebx
and edi, 0x3fffffff
test esi, esi
jne 0x47522b
mov eax, dword [ebp + 8]
lea edx, [edi + 8]
cmp edx, dword [eax + 8]
jle 0x47523d
push 0x8a20
push str.cannot_open_file_at_source_line__d
push 0xe
call fcn.0046dbc0
mov dword [ebp - 0x10], 0xe
mov esi, dword [ebp - 0x10]
add esp, 0xc
push ebx
call fcn.0046c2e0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
add ecx, 7
add eax, edi
and ecx, 0xfffffff8
lea eax, [ecx + eax*2 + 0xea]
push eax
mov dword [ebp - 0x10], eax
call fcn.0046c000
mov esi, eax
add esp, 4
test esi, esi
je 0x475388
mov edx, dword [ebp - 0x10]
push edx
push 0
push esi
call fcn.00530110
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xb0]
mov dword [esi + 0xa8], eax
add eax, 0x30
mov dword [esi + 0x38], eax
mov edx, dword [ecx + 4]
add edx, 7
and edx, 0xfffffff8
add eax, edx
mov edx, dword [ebp - 4]
mov dword [esi + 0x40], eax
add eax, edx
mov dword [esi + 0x3c], eax
add eax, edx
add esp, 0xc
mov dword [esi + 0x84], eax
test ebx, ebx
je 0x475310
push edi
lea ecx, [eax + edi + 1]
push ebx
push eax
mov dword [esi + 0x88], ecx
call fcn.00530190
mov edx, dword [esi + 0x88]
add esp, 0xc
push edi
push ebx
push edx
call fcn.00530190
mov eax, dword [esi + 0x88]
mov ecx, dword [str._journal]
mov dword [eax + edi], ecx
mov edx, dword [0x597a54]
mov dword [eax + edi + 4], edx
mov eax, dword [esi + 0x84]
add esp, 0xc
cmp byte [eax], 0
jne 0x475304
mov ecx, dword [esi + 0x88]
mov byte [ecx], 0
push ebx
call fcn.0046c2e0
mov ecx, dword [ebp + 8]
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [esi], ecx
mov dword [esi + 0x78], eax
test edx, edx
je 0x4753a5
cmp byte [edx], 0
je 0x4753a5
cmp dword [ebp - 0xc], 0
jne 0x4753a5
mov edx, dword [esi + 0x38]
mov edi, dword [esi + 0x84]
lea ebx, [ebp + 0x10]
push ebx
and eax, 0x7f3f
push eax
push edx
mov edx, dword [ecx + 0x18]
push edi
push ecx
mov dword [ebp + 0x10], 0
call edx
mov edi, eax
mov eax, dword [ebp + 0x10]
and eax, 1
add esp, 0x14
mov dword [ebp + 8], eax
test edi, edi
jne 0x4753ce
test eax, eax
jne 0x4753b5
call fcn.00474440
mov eax, dword [esi + 0x70]
cmp eax, 0x400
jbe 0x4753b5
mov bl, byte [ebp - 0x14]
cmp eax, 0x2000
jbe 0x47539d
mov dword [ebp - 8], 0x2000
jmp 0x4753b8
push ebx
call fcn.0046c2e0
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, ax
mov dword [ebp - 8], eax
jmp 0x4753b8
mov ebx, 1
and eax, ebx
mov byte [esi + 0xe], 4
mov dword [ebp + 8], eax
jmp 0x4753b8
mov bl, byte [ebp - 0x14]
lea ecx, [ebp - 8]
push 0xffffffffffffffff
push ecx
mov edi, esi
call fcn.00474990
mov edi, eax
add esp, 8
test edi, edi
je 0x4753f8
mov ebx, dword [esi + 0x38]
mov eax, dword [ebx]
test eax, eax
je 0x4753e6
mov edx, dword [eax + 4]
push ebx
call edx
add esp, 4
mov dword [ebx], 0
push esi
call fcn.0046c2e0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0xa8]
push 0x30
push 0
push edi
call fcn.00530110
movzx eax, word [ebp - 8]
xor ecx, ecx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
sete cl
mov edx, eax
neg edx
sbb edx, edx
not edx
and edx, 0x475040
cmp dword [ebp - 0x1c], 0
mov dword [edi + 0x1c], ecx
mov cl, byte [ebp - 0x18]
mov dword [edi + 0x18], 0x50
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], cl
je 0x47545a
cmp dword [ebp + 8], 0
je 0x47545a
mov ecx, 1
jmp 0x47545c
xor ecx, ecx
mov dl, byte [ebp + 8]
mov byte [esi + 0x15], al
mov byte [esi + 0xd], al
test bl, bl
sete al
mov byte [esi + 7], cl
mov byte [esi + 9], al
or eax, 0xffffffff
mov ecx, 0x50
mov dword [esi + 0x80], 0x3fffffff
mov byte [esi + 0xb], bl
mov byte [esi + 4], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0xc], dl
mov byte [esi + 8], bl
mov byte [esi + 0xa], 2
mov word [esi + 0x74], cx
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
call fcn.00474440
cmp dword [ebp - 0x18], 0
jne 0x4754b6
mov byte [esi + 5], 2
jmp 0x4754c0
cmp dword [ebp - 0xc], 0
je 0x4754c0
mov byte [esi + 5], 4
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x94], 0x4781e0
pop edi
mov dword [edx], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret