Function at 0x479650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5523d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x5ce5b4]
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x44], esi
call fcn.0047e160
add esp, 8
mov dword [ebp - 0x48], 0x59c210
push ebx
call fcn.004eed0a
add esp, 4
cmp eax, 0xffffffff
je 0x4796a6
cmp eax, 0x50
je 0x4796a6
push ebx
inc esi
call fcn.004eed0a
add esp, 4
cmp eax, 0xffffffff
jne 0x479692
push ebx
push 1
lea ecx, [ebp - 0x2f]
push 3
push ecx
mov byte [ebp - 0x30], al
call fcn.004eea28
mov cl, byte [ebp - 0x2d]
add esp, 0x10
cmp eax, 1
jne 0x479711
movzx edx, cl
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x2e]
or eax, edx
movzx edx, byte [ebp - 0x2f]
shl dx, 8
movzx edx, dx
shl eax, 0x10
or eax, edx
movzx edx, byte [ebp - 0x30]
or eax, edx
cmp eax, 0x4034b50
je 0x479711
cmp eax, 0x6054b50
je 0x479711
push 1
push 0xfffffffffffffffd
push ebx
call fcn.004ee00b
add esp, 0xc
test eax, eax
jne 0x479ac1
inc esi
jmp 0x479684
movzx edx, byte [ebp - 0x2e]
movzx eax, cl
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2f]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x30]
shl ecx, 0x10
or ecx, edx
or ecx, eax
mov dword [ebp - 0x34], esi
mov dword [0x5cea14], esi
cmp ecx, 0x4034b50
jne 0x479c4f
lea esp, [esp]
push 0x60
call fcn.0049574c
mov esi, eax
add esp, 4
test esi, esi
je 0x479e3d
mov eax, dword [0x5cea20]
lea ecx, [eax + 1]
cmp ecx, eax
jb 0x479e3d
push ebx
push 1
lea edx, [ebp - 0x30]
push 0x1a
push edx
call fcn.004eea28
add esp, 0x10
cmp eax, 1
jne 0x479dcf
movzx eax, byte [ebp - 0x2f]
movzx ecx, byte [ebp - 0x30]
shl ax, 8
or ax, cx
mov ecx, dword [0x59c1e0]
mov word [esi + 2], ax
mov dword [esi + 0x58], ecx
mov edx, ecx
neg edx
sbb edx, edx
and edx, 0xfffff4fd
add edx, 0xb17
mov word [esi], dx
movzx eax, byte [ebp - 0x2d]
movzx edx, byte [ebp - 0x2e]
shl eax, 8
or eax, edx
mov word [esi + 0x2c], ax
mov word [esi + 4], ax
movzx edx, byte [ebp - 0x2b]
movzx eax, ax
mov dword [ebp - 0x4c], eax
movzx eax, byte [ebp - 0x2c]
shl dx, 8
or dx, ax
mov word [esi + 6], dx
movzx edx, byte [ebp - 0x27]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x28]
or eax, edx
movzx edx, byte [ebp - 0x29]
shl dx, 8
movzx edx, dx
shl eax, 0x10
or eax, edx
movzx edx, byte [ebp - 0x2a]
or eax, edx
mov dword [esi + 8], eax
movzx eax, byte [ebp - 0x23]
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x24]
or edx, eax
movzx eax, byte [ebp - 0x25]
shl ax, 8
shl edx, 0x10
movzx eax, ax
or edx, eax
movzx eax, byte [ebp - 0x26]
or edx, eax
mov dword [esi + 0xc], edx
movzx edx, byte [ebp - 0x1f]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x20]
or eax, edx
movzx edx, byte [ebp - 0x21]
shl dx, 8
movzx edx, dx
shl eax, 0x10
or eax, edx
movzx edx, byte [ebp - 0x22]
or eax, edx
mov dword [esi + 0x10], eax
movzx eax, byte [ebp - 0x1b]
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x1c]
or edx, eax
movzx eax, byte [ebp - 0x1d]
shl ax, 8
shl edx, 0x10
movzx eax, ax
or edx, eax
movzx eax, byte [ebp - 0x1e]
or edx, eax
mov dword [esi + 0x14], edx
movzx edx, byte [ebp - 0x19]
shl dx, 8
movzx edi, dx
movzx eax, byte [ebp - 0x1a]
or edi, eax
mov dword [esi + 0x18], edi
movzx edx, byte [ebp - 0x17]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x18]
or eax, edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
xor eax, eax
xor edx, edx
mov word [esi + 0x28], ax
mov word [esi + 0x2a], ax
movzx eax, byte [ebp - 0x44]
mov dword [ebp - 0x40], edi
mov dword [esi + 0x24], edx
cmp ecx, edx
jne 0x4798dd
mov eax, dword [ebp - 0x44]
cmp dword [0x59c1e8], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
jle 0x4798f4
mov dword [ebp - 0x38], edx
jmp 0x4798fa
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x44], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x4c], edx
mov dword [eax], esi
lea eax, [esi + 0x5c]
mov dword [eax], edx
mov dword [ebp - 0x48], eax
cmp edi, edx
je 0x479ddd
lea ecx, [edi + 1]
push ecx
call fcn.0049574c
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [esi + 0x48], eax
test eax, eax
je 0x479e3d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x479956
push eax
call fcn.0049574c
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x479e3d
mov edx, dword [ebp - 0x3c]
push ebx
push 1
push edi
push edx
call fcn.004eea28
add esp, 0x10
cmp eax, 1
jne 0x479ac1
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x47998f
push ebx
push 1
push eax
mov eax, dword [esi + 0x3c]
push eax
call fcn.004eea28
add esp, 0x10
cmp eax, 1
jne 0x479ac1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4799aa
push 1
push eax
push ebx
call fcn.004ee00b
add esp, 0xc
test eax, eax
jne 0x479ac1
mov ecx, dword [esi + 0x48]
mov edx, edi
mov byte [edx + ecx], 0
mov edi, dword [esi + 0x48]
mov eax, edi
lea edx, [eax + 1]
jmp 0x4799c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4799c0
sub eax, edx
inc eax
push eax
call fcn.0049574c
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4799ee
mov eax, dword [ebp - 0x3c]
mov ecx, edi
sub eax, edi
mov dl, byte [ecx]
mov byte [ecx + eax], dl
inc ecx
test dl, dl
jne 0x4799e1
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x479e3d
cmp dword [0x5539ac], 0
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], ecx
je 0x479a20
mov edx, dword [0x5ce5a4]
push eax
push 0x549660
push edx
call fcn.00497350
add esp, 0xc
mov ecx, dword [esi + 0x1c]
add ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
add ecx, edi
lea edx, [eax + ecx + 0x1e]
mov dword [esi + 0x34], eax
mov eax, 1
add dword [0x5cea20], eax
test byte [ebp - 0x4c], 8
mov dword [ebp - 0x34], edx
je 0x479cea
test edi, edi
jne 0x479b47
push ebx
call fcn.004eed0a
add esp, 4
cmp eax, 0xffffffff
je 0x479a68
cmp eax, 0x50
jne 0x479a55
push ebx
push 1
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x2f]
push 0xf
push eax
call fcn.004eea28
add esp, 0x10
cmp eax, 1
jne 0x479ae4
movzx ecx, byte [ebp - 0x2d]
movzx eax, byte [ebp - 0x2e]
shl cx, 8
movzx edx, cx
movzx ecx, byte [ebp - 0x2f]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [ebp - 0x30]
shl edx, 0x10
or edx, eax
or edx, ecx
cmp edx, 0x8074b50
je 0x479ae4
push 1
push 0xfffffffffffffff1
push ebx
call fcn.004ee00b
add esp, 0xc
test eax, eax
je 0x479a55
push ebx
call fcn.004edea3
add esp, 4
neg eax
sbb eax, eax
and eax, 9
add eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493825
mov esp, ebp
pop ebp
ret
movzx edx, byte [ebp - 0x25]
movzx ecx, byte [ebp - 0x27]
movzx eax, byte [ebp - 0x26]
shl dx, 8
movzx edi, dx
or edi, eax
movzx eax, byte [ebp - 0x28]
shl cx, 8
movzx edx, cx
shl edi, 0x10
or edi, edx
or edi, eax
add dword [ebp - 0x34], edi
push ebx
call fcn.004ef1aa
mov ecx, dword [ebp - 0x34]
add ecx, 0x10
add esp, 4
cmp eax, ecx
je 0x479bab
mov eax, dword [esi + 0x4c]
mov ecx, 0x549674
call fcn.00475e30
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493825
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x34]
push 0
push edx
push ebx
call fcn.004ee00b
add esp, 0xc
test eax, eax
jne 0x479ac1
push ebx
push 1
lea eax, [ebp - 0x30]
push 0x10
push eax
call fcn.004eea28
add esp, 0x10
cmp eax, 1
jne 0x479ac1
movzx ecx, byte [ebp - 0x2d]
movzx eax, byte [ebp - 0x2e]
shl cx, 8
movzx edx, cx
movzx ecx, byte [ebp - 0x2f]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [ebp - 0x30]
shl edx, 0x10
or edx, eax
or edx, ecx
cmp edx, 0x8074b50
jne 0x479e1b
movzx edx, byte [ebp - 0x29]
movzx ecx, byte [ebp - 0x2a]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x2b]
or eax, ecx
shl dx, 8
shl eax, 0x10
movzx ecx, dx
movzx edx, byte [ebp - 0x2c]
or eax, ecx
or eax, edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
movzx eax, byte [ebp - 0x21]
movzx edx, byte [ebp - 0x22]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x23]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x24]
shl ecx, 0x10
or ecx, edx
or ecx, eax
add dword [ebp - 0x34], 0x10
mov dword [esi + 0x14], ecx
push ebx
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call fcn.004eea28
add esp, 0x10
cmp eax, 1
jne 0x479c4f
movzx ecx, byte [ebp - 0x2d]
movzx eax, byte [ebp - 0x2e]
shl cx, 8
movzx edx, cx
movzx ecx, byte [ebp - 0x2f]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [ebp - 0x30]
shl edx, 0x10
or edx, eax
or edx, ecx
cmp edx, 0x4034b50
je 0x479750
movzx eax, byte [ebp - 0x2d]
movzx edx, byte [ebp - 0x2e]
shl ax, 8
movzx ecx, ax
movzx eax, byte [ebp - 0x2f]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [ebp - 0x30]
shl ecx, 0x10
or ecx, edx
or ecx, eax
cmp ecx, 0x2014b50
je 0x479e52
cmp dword [0x5539ac], 0
je 0x479e52
mov esi, 1
mov eax, 0x5496ec
cmp dword [0x59c1e8], esi
jg 0x479ca6
mov eax, 0x5496f8
mov ecx, dword [0x5ce5b4]
mov edx, dword [0x5ce5a4]
push eax
push ecx
push 0x549704
push edx
call fcn.00497350
add esp, 0x10
cmp dword [0x59c1e8], esi
jne 0x479e52
mov eax, dword [0x5ce5a4]
push 0x549728
push eax
call fcn.00497350
add esp, 8
push 3
xor eax, eax
call fcn.00475c50
cmp dword [0x59c1e8], eax
jle 0x479c06
mov edi, dword [ebp - 0x34]
lea esp, [esp]
push ebx
call fcn.004eed0a
add esp, 4
cmp eax, 0xffffffff
je 0x479d27
mov edi, edi
cmp eax, 0x50
je 0x479d24
push ebx
inc edi
call fcn.004eed0a
add esp, 4
cmp eax, 0xffffffff
jne 0x479d10
mov dword [ebp - 0x34], edi
push ebx
push 1
lea ecx, [ebp - 0x2f]
push 3
push ecx
mov byte [ebp - 0x30], al
call fcn.004eea28
add esp, 0x10
cmp eax, 1
jne 0x479d93
movzx edx, byte [ebp - 0x2d]
movzx ecx, byte [ebp - 0x2e]
shl dx, 8
movzx eax, dx
movzx edx, byte [ebp - 0x2f]
or eax, ecx
shl dx, 8
movzx ecx, dx
movzx edx, byte [ebp - 0x30]
shl eax, 0x10
or eax, ecx
or eax, edx
cmp eax, 0x4034b50
je 0x479d93
cmp eax, 0x2014b50
je 0x479d93
push 1
push 0xfffffffffffffffd
push ebx
call fcn.004ee00b
add esp, 0xc
test eax, eax
jne 0x479ac1
inc edi
mov dword [ebp - 0x34], edi
jmp 0x479d00
mov edi, dword [ebp - 0x34]
sub edi, dword [esi + 0x34]
mov eax, dword [esi + 0x10]
sub edi, dword [esi + 0x1c]
sub edi, dword [ebp - 0x40]
sub edi, 0x1e
cmp edi, eax
je 0x479c1c
mov ecx, dword [esi + 0x4c]
mov edx, dword [0x5ce5a4]
push ecx
push edi
push eax
push 0x5496bc
push edx
call fcn.00497350
add esp, 0x14
mov dword [esi + 0x10], edi
jmp 0x479c1c
push esi
call fcn.00495660
add esp, 4
jmp 0x479c4f
mov edx, dword [0x5cea20]
inc edx
push edx
push 0x54963c
push 0x5ce5c0
call fcn.00494428
add esp, 0xc
mov eax, 0x5ce5c0
mov ecx, 0x549640
call fcn.00475e30
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493825
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
mov ecx, 0x549694
call fcn.00475e30
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493825
mov esp, ebp
pop ebp
ret
mov eax, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493825
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5cea14]
mov ecx, dword [ebp - 0x34]
mov dword [0x5ce5ac], ecx
test eax, eax
je 0x479e88
cmp dword [0x5539ac], 0
je 0x479e88
mov edx, dword [0x5ce5b4]
push eax
mov eax, dword [0x5ce5a4]
push edx
push 0x549770
push eax
call fcn.00497350
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00493825
mov esp, ebp
pop ebp
ret