Function at 0x4ae7c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4da8f0]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, dword [ebp + 0x28]
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp edi, dword [0x5097f8]
je 0x4ae803
mov eax, dword [0x5097e0]
cmp eax, ebx
je 0x4ae803
push eax
call fcn.004b3dae
add esp, 4
mov dword [0x5097e0], ebx
mov ecx, dword [0x5097e4]
push edi
push ecx
mov dword [0x5097f8], edi
call fcn.00438540
mov esi, eax
mov eax, dword [0x5097e0]
cmp eax, ebx
jne 0x4ae875
push 0x4c9110
push esi
call fcn.004b3ef0
add esp, 8
mov dword [0x5097e0], eax
cmp eax, ebx
jne 0x4ae875
push edi
call fcn.00438e90
test eax, eax
jne 0x4ae8de
push esi
call fcn.004b1201
mov edx, dword [0x5097e4]
add esp, 4
push edi
push edx
call fcn.00438540
mov esi, eax
push 0x4c9110
push esi
call fcn.004b3ef0
add esp, 8
mov dword [0x5097e0], eax
cmp eax, ebx
je 0x4ae838
cmp esi, ebx
je 0x4ae887
push esi
call fcn.004b1201
mov eax, dword [0x5097e0]
add esp, 4
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
push ebx
push ecx
push edx
push eax
call fcn.004b3fa3
add esp, 0x10
test eax, eax
mov eax, dword [0x5097e0]
je 0x4ae8f8
push eax
call fcn.004b3dae
mov eax, dword [0x508354]
add esp, 4
push eax
push ebx
push eax
push ebx
mov ecx, 0x508304
mov dword [0x5097e0], ebx
call fcn.0042d2d0
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b102c
add esp, 0x24
ret 8
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b102c
add esp, 0x24
ret 8
push 0x4cf5c8
call fcn.004ab150
test eax, eax
jne 0x4ae94f
mov ecx, dword [0x5097e0]
push ecx
call fcn.004b3dae
add esp, 4
push 0x2ad
mov dword [0x5097e0], ebx
call fcn.004671c0
mov edx, dword [0x508354]
push eax
push edx
call fcn.0049ac10
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b102c
add esp, 0x24
ret 8
mov eax, dword [0x5097e0]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0x1a
push ecx
call fcn.004b3d1a
add esp, 0x10
cmp eax, 1
je 0x4ae9bf
mov edx, dword [0x5097e0]
push edx
call fcn.004b3862
mov esi, eax
mov eax, dword [0x5097e0]
push eax
call fcn.004b3dae
add esp, 8
cmp esi, ebx
je 0x4ae99e
mov eax, dword [0x508354]
push eax
push ebx
push eax
push ebx
mov ecx, 0x508304
call fcn.0042d2d0
mov eax, esi
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 9
pop ebp
add eax, 2
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b102c
add esp, 0x24
ret 8
push 0x80
call fcn.004b1137
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4ae9fb
mov ecx, dword [0x5097e0]
push ecx
call fcn.004b3dae
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b102c
add esp, 0x24
ret 8
movzx edx, byte [esp + 0x15]
movzx eax, byte [esp + 0x14]
shl dx, 8
or dx, ax
mov word [esi + 2], dx
movzx ecx, byte [esp + 0x17]
movzx edx, byte [esp + 0x16]
shl cx, 8
or cx, dx
mov word [esi + 0x2e], cx
movzx eax, byte [esp + 0x19]
movzx ecx, byte [esp + 0x18]
shl ax, 8
or ax, cx
mov word [esi + 6], ax
movzx edx, byte [esp + 0x1d]
movzx ecx, byte [esp + 0x1c]
shl dx, 8
movzx eax, dx
movzx edx, byte [esp + 0x1b]
or eax, ecx
shl dx, 8
shl eax, 0x10
movzx ecx, dx
movzx edx, byte [esp + 0x1a]
or eax, ecx
or eax, edx
mov dword [esi + 8], eax
movzx eax, byte [esp + 0x21]
movzx edx, byte [esp + 0x20]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x1f]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [esp + 0x1e]
shl ecx, 0x10
or ecx, edx
or ecx, eax
mov dword [esi + 0xc], ecx
movzx ecx, byte [esp + 0x2b]
movzx edx, byte [esp + 0x2a]
shl cx, 8
or cx, dx
mov word [esi + 0x20], cx
movzx eax, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
movzx edx, word [esi + 0x20]
shl ax, 8
inc edx
or ax, cx
push edx
mov word [esi + 0x22], ax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
call fcn.004b1137
add esp, 4
mov dword [esi + 0x4c], eax
cmp eax, ebx
je 0x4ae9e1
movzx eax, word [esi + 0x22]
cmp ax, bx
je 0x4aeb0e
movzx eax, ax
push eax
call fcn.004b1137
add esp, 4
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x4ae9e1
mov ecx, dword [0x5097e0]
movzx edx, word [esi + 0x20]
mov eax, dword [esi + 0x4c]
push ecx
push 1
push edx
push eax
call fcn.004b3d1a
add esp, 0x10
cmp eax, 1
jne 0x4aec0e
movzx eax, word [esi + 0x22]
cmp ax, bx
je 0x4aeb5c
mov ecx, dword [0x5097e0]
push ecx
movzx edx, ax
mov eax, dword [esi + 0x40]
push 1
push edx
push eax
call fcn.004b3d1a
add esp, 0x10
cmp eax, 1
jne 0x4aec0e
movzx ecx, word [ebp + 0x20]
mov edx, dword [esi + 0x4c]
push esi
mov byte [ecx + edx], bl
call fcn.004aa1f0
movzx eax, word [ebp]
movzx ecx, al
shr ax, 8
cmp ax, bx
jne 0x4aeb8b
cmp ecx, 0x19
je 0x4aeb8b
cmp ecx, 0x1a
je 0x4aeb8b
cmp ecx, 0x28
jne 0x4aeb9c
cmp ax, 6
je 0x4aeb9c
cmp ax, 0xb
jne 0x4aeba7
cmp ecx, 0x32
jne 0x4aeba7
mov eax, dword [esi + 0x4c]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
movzx eax, word [esi + 0x20]
inc eax
push eax
call fcn.004b1137
add esp, 4
mov dword [esi + 0x3c], eax
cmp eax, ebx
je 0x4ae9e1
mov ecx, dword [esi + 0x4c]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x4aebc5
call fcn.004aa4c0
mov dword [0x5097c4], eax
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x18], ecx
mov edx, dword [ebp + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x14]
pop edi
mov dword [esi + 0x14], ecx
mov dword [edx], esi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004b102c
add esp, 0x24
ret 8
mov eax, dword [0x5097e0]
push eax
call fcn.004b3862
mov ecx, dword [esp + 0x34]
add esp, 4
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 9
pop ebx
xor ecx, esp
add eax, 2
call fcn.004b102c
add esp, 0x24
ret 8