Function at 0x401dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426ff9
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x432fc8]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x432fc8]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x3ff
xor edi, edi
lea eax, [esp + 0x61]
push edi
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x68], 0
call fcn.00417180
add esp, 0xc
push 0x400
lea ecx, [esp + 0x60]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x42ab98
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edi
call fcn.00417937
mov ecx, dword [esp + 0x20]
push 2
push edi
push ecx
call fcn.004177ee
mov edx, dword [esp + 0x2c]
push edx
call fcn.004176f9
mov esi, eax
add esp, 0x1c
cmp esi, 0x20
jle 0x4020c7
mov ecx, dword [esp + 0x14]
push edi
lea eax, [esi - 0x14]
push eax
push ecx
call fcn.004177ee
mov edx, dword [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x30]
push 4
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edi
call fcn.00417546
mov ecx, dword [esp + 0x30]
push ecx
push 1
lea edx, [esp + 0x4c]
push 4
push edx
call fcn.00417546
push 0x400
lea eax, [esp + 0x8c]
push edi
push eax
call fcn.00417180
mov ecx, dword [esp + 0x4c]
push ecx
push 0xc
lea edx, [esp + 0x9c]
push 1
push edx
call fcn.00417546
mov eax, dword [esp + 0x64]
add esp, 0x48
cmp eax, edi
jl 0x4020c7
cmp eax, esi
jg 0x4020c7
mov eax, dword [esp + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x4020c7
mov eax, 0xc
mov ecx, str.0123456789BR
lea edx, [esp + 0x5c]
jmp 0x401f20
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x401f38
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x401f20
cmp eax, edi
je 0x401f95
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401f87
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, edi
je 0x401f95
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401f87
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, edi
je 0x401f95
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x401f87
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, edi
je 0x401f95
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x401f95
cmp esi, edi
mov eax, 1
jg 0x401f97
or eax, 0xffffffff
jmp 0x401f97
xor eax, eax
cmp eax, edi
jne 0x4020c7
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ebx, 4
mov dword [eax + 0x20], edx
mov eax, dword [ebx + 4]
cmp eax, edi
mov dword [esp + 0x38], ebx
jne 0x401fc2
mov dword [esp + 0x20], edi
jmp 0x401fde
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], edi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
jle 0x4020c3
mov edx, dword [esp + 0x18]
add edx, 0x14
mov dword [esp + 0x3c], edx
jmp 0x402004
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
call fcn.00402e60
mov eax, dword [eax]
mov esi, ebx
mov dword [esp + 0x24], eax
call fcn.00402e20
push eax
lea ecx, [esp + 0x44]
call fcn.004014b0
xor ebx, ebx
push 0x74
mov dword [esp + 0x474], ebx
call fcn.00416ced
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, ebx
mov byte [esp + 0x470], 1
je 0x40206e
push ebx
sub esp, 0x1c
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004014b0
mov ecx, dword [esp + 0x44]
mov ebx, esi
call fcn.00404640
mov dword [esp + 0x18], eax
jmp 0x402072
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov byte [esp + 0x470], 0
lea ebx, [esp + 0x30]
mov dword [esp + 0x30], eax
call fcn.00402fa0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x44], eax
add eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x470], 0xffffffff
call fcn.00401960
add edi, 1
cmp edi, dword [esp + 0x20]
jl 0x402000
mov al, 1
jmp 0x4020c9
xor al, al
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00417168
mov esp, ebp
pop ebp
ret 4