Function at 0x471d90
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 0x471dd5
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 4], eax
jmp 0x471ddf
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 0x471ec3
cmp byte [edx], bl
je 0x471ec3
mov esi, dword [ecx + 8]
inc esi
lea eax, [esi + esi]
push eax
call fcn.00468c80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x472011
mov edx, dword [ebp + 0x10]
mov edi, str.:memory:
mov eax, edx
jmp 0x471e20
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x471e40
test cl, cl
je 0x471e3c
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x471e40
add eax, 2
add edi, 2
test cl, cl
jne 0x471e20
xor eax, eax
jmp 0x471e45
sbb eax, eax
sbb eax, 0xffffffff
mov byte [ebx], 0
test eax, eax
jne 0x471e58
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], 1
jmp 0x471e69
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 0x471e76
inc edi
cmp byte [edi], 0
jne 0x471e70
sub edi, ebx
and edi, 0x3fffffff
test esi, esi
jne 0x471eab
mov eax, dword [ebp + 8]
lea edx, [edi + 8]
cmp edx, dword [eax + 8]
jle 0x471ebd
push 0x8a20
push str.cannot_open_file_at_source_line__d
push 0xe
call fcn.0046a840
mov dword [ebp - 0x10], 0xe
mov esi, dword [ebp - 0x10]
add esp, 0xc
push ebx
call fcn.00468f60
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.00468c80
mov esi, eax
add esp, 4
test esi, esi
je 0x472008
mov edx, dword [ebp - 0x10]
push edx
push 0
push esi
call fcn.004ecd20
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 0x471f90
push edi
lea ecx, [eax + edi + 1]
push ebx
push eax
mov dword [esi + 0x88], ecx
call fcn.004ee090
mov edx, dword [esi + 0x88]
add esp, 0xc
push edi
push ebx
push edx
call fcn.004ee090
mov eax, dword [esi + 0x88]
mov ecx, dword [str._journal]
mov dword [eax + edi], ecx
mov edx, dword [0x544fc4]
mov dword [eax + edi + 4], edx
mov eax, dword [esi + 0x84]
add esp, 0xc
cmp byte [eax], 0
jne 0x471f84
mov ecx, dword [esi + 0x88]
mov byte [ecx], 0
push ebx
call fcn.00468f60
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 0x472025
cmp byte [edx], 0
je 0x472025
cmp dword [ebp - 0xc], 0
jne 0x472025
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 0x47204e
test eax, eax
jne 0x472035
call fcn.004710c0
mov eax, dword [esi + 0x70]
cmp eax, 0x400
jbe 0x472035
mov bl, byte [ebp - 0x14]
cmp eax, 0x2000
jbe 0x47201d
mov dword [ebp - 8], 0x2000
jmp 0x472038
push ebx
call fcn.00468f60
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 0x472038
mov ebx, 1
and eax, ebx
mov byte [esi + 0xe], 4
mov dword [ebp + 8], eax
jmp 0x472038
mov bl, byte [ebp - 0x14]
lea ecx, [ebp - 8]
push 0xffffffffffffffff
push ecx
mov edi, esi
call fcn.00471610
mov edi, eax
add esp, 8
test edi, edi
je 0x472078
mov ebx, dword [esi + 0x38]
mov eax, dword [ebx]
test eax, eax
je 0x472066
mov edx, dword [eax + 4]
push ebx
call edx
add esp, 4
mov dword [ebx], 0
push esi
call fcn.00468f60
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.004ecd20
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, 0x471cc0
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 0x4720da
cmp dword [ebp + 8], 0
je 0x4720da
mov ecx, 1
jmp 0x4720dc
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.004710c0
cmp dword [ebp - 0x18], 0
jne 0x472136
mov byte [esi + 5], 2
jmp 0x472140
cmp dword [ebp - 0xc], 0
je 0x472140
mov byte [esi + 5], 4
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x94], 0x474e60
pop edi
mov dword [edx], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret