Function at 0x403d60
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x40628]
mov eax, 0x40628
call fcn.0041bbb0
push 0xffffffffffffffff
push 0x41c998
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x424430]
xor eax, ebp
mov dword [ebp + 0x40624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x40634]
lea eax, [ebp - 0x2c]
push eax
call fcn.00407f60
mov ebx, dword [ebp + 0x40630]
xor esi, esi
cmp ebx, 2
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
jge 0x403e08
push 0x41f5e8
call fcn.0040fc3a
mov eax, dword [ebp - 0x20]
add esp, 4
cmp eax, esi
je 0x403dee
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push ecx
call fcn.0040c1a0
mov edx, dword [ebp - 0x20]
push edx
call fcn.004100ea
add esp, 8
mov eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.004100ea
add esp, 4
jmp 0x404243
mov esi, 1
cmp ebx, esi
mov byte [ebp + 0x40514], 0
jle 0x403e61
jmp 0x403e20
mov ecx, dword [edi + esi*4]
push 0x41f658
push ecx
call fcn.0040f5a1
add esp, 8
test eax, eax
jne 0x403e3e
mov byte [0x4264f4], 1
jmp 0x403e5c
cmp byte [ebp + 0x40514], 0
jne 0x403e5c
mov eax, dword [edi + esi*4]
lea edx, [ebp + 0x40514]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403e52
inc esi
cmp esi, ebx
jl 0x403e20
push 0x104
lea edx, [ebp + 0x40000]
push edx
xor edi, edi
push edi
mov byte [0x4263e0], 0
mov byte [0x4262d8], 0
call dword [0x41d040]
xor eax, eax
jmp 0x403e90
mov cl, byte [ebp + eax + 0x40000]
mov byte [ebp + eax + 0x4030c], cl
inc eax
test cl, cl
jne 0x403e90
push 0x41f668
lea eax, [ebp + 0x4030c]
push eax
call dword [0x41d16c]
lea ecx, [ebp + 0x4030c]
push ecx
push 0x103
lea edx, [ebp + 0x40410]
push edx
push 0x41f670
push 0x41f684
push 0x41f68c
call dword [0x41d034]
xor eax, eax
nop
mov cl, byte [ebp + eax + 0x40514]
mov byte [ebp + eax + 0x40208], cl
inc eax
test cl, cl
jne 0x403ee0
lea eax, [ebp + 0x40208]
push eax
call dword [0x41d168]
lea ecx, [ebp + 0x40410]
push ecx
lea edx, [ebp + 0x40208]
push edx
lea eax, [ebp + 0x40104]
push eax
call dword [0x41d164]
lea ecx, [ebp + 0x40410]
push ecx
call dword [0x41d170]
lea ecx, [ebp + 0x40104]
mov byte [ebp - 4], 1
call fcn.00405b50
test al, al
jne 0x403f50
push 0x4209b8
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], 0xffffffff
call fcn.00410bbb
lea ecx, [ebp + 0x40410]
call fcn.00407020
lea eax, [ebp + 0x40514]
push 0x41f698
push eax
call fcn.0040fdc3
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x403fa1
lea ecx, [ebp + 0x40514]
push ecx
push 0x41f69c
call fcn.0040fc3a
add esp, 8
push 0x4209b8
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0xffffffff
call fcn.00410bbb
push esi
push 1
lea eax, [ebp + 0x40618]
push 0xb
push eax
call fcn.004100b7
add esp, 0x10
test eax, eax
jne 0x403fe2
lea ecx, [ebp + 0x40514]
push ecx
push 0x41f6b8
call fcn.0040fc3a
add esp, 8
push 0x4209b8
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], 0xffffffff
call fcn.00410bbb
cmp byte [ebp + 0x40618], 0x4d
mov dword [ebp - 0x30], edi
jne 0x4040d6
cmp byte [ebp + 0x40619], 0x5a
jne 0x4040d6
push 0
push 0x10
push esi
xor bl, bl
call fcn.0041044d
add esp, 0xc
mov edi, edi
push esi
push 1
lea eax, [ebp]
push 0x40000
push eax
call fcn.004100b7
add esp, 0x10
test eax, eax
jbe 0x40409c
lea esi, [ebp]
jmp 0x404030
lea eax, [ebp + 0x40000]
cmp esi, eax
jae 0x404081
add edi, 0x10
adc dword [ebp - 0x30], 0
mov edx, 0xb
mov eax, 0x4257b0
mov ecx, esi
lea ecx, [ecx]
cmp edx, 4
jb 0x404066
mov ebx, dword [ecx]
cmp ebx, dword [eax]
jne 0x40407c
sub edx, 4
add eax, 4
add ecx, 4
jmp 0x404050
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40407c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40407c
mov al, byte [eax + 2]
cmp al, byte [ecx + 2]
je 0x4040c2
add esi, 0x10
jmp 0x404030
xor bl, bl
mov esi, dword [ebp - 0x14]
je 0x404010
push 0
lea edx, [edi + 0xb]
push edx
push esi
call fcn.0041044d
add esp, 0xc
jmp 0x404122
test bl, bl
jne 0x4040c5
push 0x41f6e0
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0xffffffff
call fcn.00410bbb
mov esi, dword [ebp - 0x14]
push 0
lea edx, [edi + 0xb]
push edx
push esi
call fcn.0041044d
add esp, 0xc
jmp 0x404122
mov edx, 0xb
mov eax, 0x4257b0
lea ecx, [ebp + 0x40618]
cmp edx, 4
jb 0x404100
mov ebx, dword [ecx]
cmp ebx, dword [eax]
jne 0x4041f9
sub edx, 4
add eax, 4
add ecx, 4
jmp 0x4040e6
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4041f9
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4041f9
mov al, byte [eax + 2]
cmp al, byte [ecx + 2]
jne 0x4041f9
mov ebx, dword [ebp - 0x30]
push ebx
push edi
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.00406090
add esp, 0x10
test eax, eax
jne 0x40415f
push 0x41f700
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0xffffffff
call fcn.00410bbb
push ebx
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404550
add esp, 0xc
call fcn.004072d0
push esi
call fcn.004107d8
mov eax, dword [0x4264e8]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x4041bf
push eax
call dword [0x41d010]
cmp byte [0x4262d8], 0
mov dword [0x4264e8], esi
je 0x4041a9
push 0x4262d8
call fcn.004103b8
add esp, 4
cmp byte [0x4263e0], 0
je 0x4041bf
push 0x4263e0
call fcn.004103b8
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x4041e0
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x1c]
push ecx
call fcn.0040c1a0
mov edx, dword [ebp - 0x20]
push edx
call fcn.004100ea
add esp, 8
xor esi, esi
mov eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.004100ea
add esp, 4
xor eax, eax
jmp 0x404246
push 0x41f6e0
call fcn.0040fc3a
add esp, 4
push 0x4209b8
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 0x44], 0xffffffff
call fcn.00410bbb
call fcn.004072d0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404230
push eax
call fcn.004107d8
add esp, 4
call fcn.00405f50
mov eax, 0x40363b
ret
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x40624]
xor ecx, ebp
call fcn.0040f3fd
add ebp, 0x40628
mov esp, ebp
pop ebp
ret