Function at 0x436f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bba8e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4ed310]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
xor ebx, ebx
push ebx
call fcn.00434900
test al, al
jne 0x436fd6
mov eax, 2
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov dword [esp + 0x1c], ebx
cmp eax, 0xffffffff
je 0x436fbe
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436fbe
mov eax, dword [esp + 0x18]
xor ecx, ecx
and eax, ecx
cmp eax, 0xffffffff
je 0x436fbe
movzx eax, word [esp + 0x1c]
cmp eax, 0xefeff
jg 0x437030
je 0x4373d9
cmp eax, 0xfffe0000
je 0x4373d9
cmp eax, 0xfeff
jne 0x43703b
jmp 0x437051
cmp eax, 0xefbbbf
je 0x4373d9
push 1
push ebx
push ebx
mov ecx, edi
call fcn.00434970
and eax, edx
cmp eax, 0xffffffff
je 0x436fbe
call fcn.00436e20
mov eax, 0xb
lea esi, [esp + 0x28]
mov dword [edi + 0x840], ebx
call fcn.00434a60
mov esi, dword [esp + 0x14]
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.004349f0
mov ecx, esi
mov edi, eax
mov dword [esp + 0x20], edx
call fcn.00436b60
sub edi, eax
mov eax, dword [esp + 0x20]
sbb eax, edx
mov dword [esi + 0x82c], eax
mov eax, edi
or eax, dword [esi + 0x82c]
mov dword [esi + 0x828], edi
je 0x4373b4
jmp 0x4370b2
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00436ed0
test al, al
je 0x4373b4
mov edi, dword [esp + 0x10]
cmp di, 0x20
je 0x4370e0
cmp di, 9
je 0x4370e0
cmp di, 0xd
je 0x4370e0
cmp di, 0xa
jne 0x4370f7
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
call fcn.00436ed0
test al, al
jne 0x4370c4
jmp 0x4373b4
cmp di, 0x5b
jne 0x4371e1
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov esi, edi
call fcn.00436ed0
test al, al
je 0x4373b4
push 0x1c
call fcn.0049964e
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x40], 1
test eax, eax
je 0x437139
mov esi, eax
call fcn.00436c10
jmp 0x43713b
xor eax, eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x18], eax
add edi, 0x830
lea eax, [esp + 0x18]
call fcn.00437500
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
cmp di, 0x5d
je 0x4371d3
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
jb 0x4371ab
lea esi, [eax + eax]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [ebx + 4], esi
neg ecx
or ecx, eax
push ecx
call fcn.00497a23
mov ecx, dword [ebx]
mov esi, eax
mov eax, dword [ebx + 4]
add esp, 4
shr eax, 1
push eax
push ecx
push esi
call fcn.00499e17
mov edx, dword [ebx]
add esp, 0xc
push edx
call fcn.004996ce
add esp, 4
mov dword [ebx], esi
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov word [ecx + eax*2], di
inc dword [ebx + 8]
push edx
call fcn.00436ed0
test al, al
je 0x4371d3
mov edi, dword [esp + 0x10]
cmp di, 0x5d
jne 0x437161
push 0
mov esi, ebx
call fcn.00434aa0
jmp 0x43739e
test ebx, ebx
je 0x43739e
push 0x10
call fcn.0049964e
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x40], 2
test eax, eax
je 0x43720d
mov esi, eax
call fcn.00436bd0
mov dword [esp + 0x18], eax
jmp 0x437215
mov dword [esp + 0x18], 0
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
cmp di, 0x3d
je 0x4372af
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x30], edi
jb 0x43727f
add edi, edi
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x2c], edi
neg ecx
or ecx, eax
push ecx
call fcn.00497a23
mov esi, dword [esp + 0x2c]
add esp, 4
mov ecx, edi
shr ecx, 1
push ecx
push esi
push eax
mov dword [esp + 0x2c], eax
call fcn.00499e17
add esp, 0xc
push esi
call fcn.004996ce
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x30]
mov cx, word [esp + 0x10]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov word [edx + eax*2], cx
inc eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
call fcn.00436ed0
test al, al
je 0x4372af
cmp word [esp + 0x10], 0x3d
jne 0x437230
push 0
lea esi, [esp + 0x2c]
call fcn.00434aa0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push ecx
push 0x4d545c
push edx
call fcn.0049a0bd
mov esi, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x34], 0
call fcn.00436ed0
test al, al
je 0x4373b4
mov eax, dword [esp + 0x10]
cmp ax, 0xa
je 0x437384
cmp ax, 0xd
je 0x437384
cmp ax, 0x5c
jne 0x43734e
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0
call fcn.00436ed0
test al, al
je 0x437379
mov edi, dword [esp + 0x20]
cmp di, 0xa
je 0x437384
cmp di, 0xd
je 0x437384
mov esi, dword [esp + 0x18]
add esi, 4
cmp di, 0x6e
je 0x43734a
push 0x5c
call fcn.00434aa0
push edi
jmp 0x437356
push 0xa
jmp 0x437356
mov esi, dword [esp + 0x18]
push eax
add esi, 4
call fcn.00434aa0
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
call fcn.00436ed0
test al, al
je 0x437384
mov eax, dword [esp + 0x10]
cmp ax, 0xa
jne 0x4372fd
jmp 0x437384
push 0x5c
lea esi, [esp + 0x2c]
call fcn.00434aa0
mov esi, dword [esp + 0x18]
push 0
add esi, 4
call fcn.00434aa0
lea edi, [ebx + 0xc]
lea eax, [esp + 0x24]
call fcn.00437500
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x828]
or ecx, dword [eax + 0x82c]
jne 0x4370b0
mov edx, dword [esp + 0x28]
push edx
call fcn.004996ce
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret