Function at 0x4129f1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42733c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
cmp dword [edi + 0x514], ebx
je 0x412bac
cmp dword [edi + 0x51c], ebx
je 0x412ba1
push 0x2000
push dword [0x429eb0]
call fcn.00413857
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x412d85
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x2000
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412d87
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x412afb
cmp eax, 0x2000
jne 0x412a7b
dec eax
mov dword [ebp - 0x34], eax
push 0x401524
mov byte [eax + esi], bl
push esi
jmp 0x412aed
mov edx, ebx
push 0x3d
push eax
mov dword [ebp - 0x30], edx
call fcn.0041a099
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x412ae7
mov byte [esi], bl
inc esi
je 0x412ae7
mov eax, dword [ebp - 0x2c]
jmp 0x412aa6
inc eax
cmp byte [eax], 0x20
je 0x412aa5
mov dl, byte [eax]
mov dword [ebp - 0x2c], eax
test dl, dl
je 0x412ad6
mov edi, eax
cmp dl, 0x20
je 0x412ac3
lea ecx, [edi + 1]
mov dword [ebp - 0x30], ecx
jmp 0x412ac6
mov ecx, dword [ebp - 0x30]
inc edi
mov dl, byte [edi]
test dl, dl
jne 0x412ab6
mov edi, dword [ebp - 0x38]
test ecx, ecx
je 0x412ad6
mov byte [ecx], bl
push 0x401d2c
push eax
call fcn.0041b05f
pop ecx
pop ecx
test eax, eax
je 0x412b1f
push 0x401524
push ebx
call fcn.0041b9c2
pop ecx
mov dword [ebp - 0x2c], eax
pop ecx
test eax, eax
jne 0x412a86
mov byte [ebp - 0x24], bl
cmp dword [edi + 0x518], ebx
je 0x412b82
cmp byte [edi + 0x104], bl
je 0x412ba1
lea ecx, [edi + 0x106]
mov al, byte [ecx]
mov esi, ecx
jmp 0x412b56
inc esi
cmp byte [esi], 0x20
je 0x412b1e
mov al, byte [esi]
mov ecx, esi
jmp 0x412b37
cmp al, 0x20
je 0x412b34
lea edx, [ecx + 1]
mov dword [ebp - 0x30], edx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x412b2a
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x412b44
mov byte [eax], bl
cmp byte [esi], bl
je 0x412afb
push esi
jmp 0x412b96
cmp al, 0x5c
je 0x412b5a
cmp al, 0x2f
je 0x412b5a
inc esi
mov al, byte [esi]
test al, al
jne 0x412b4b
sub esi, ecx
cmp esi, 0x1d
jae 0x412ba1
push esi
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.0041a400
add esp, 0xc
cmp esi, 0x1e
jae 0x412b7d
mov byte [ebp + esi - 0x24], bl
mov bl, byte [ebp - 0x24]
jmp 0x412b8e
call fcn.0041ae66
mov dword [edi + 0x51c], ebx
mov dword [0x4287d0], ebx
test bl, bl
je 0x412ba1
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [edi + 0x520]
call fcn.00412911
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x28]
jmp 0x412d87
push 0x2000
push dword [0x429eb0]
call fcn.00413857
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x412d87
push ebx
lea eax, [ebp - 0x34]
push eax
push 0x2000
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412d87
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x412d87
cmp eax, 0x2000
jne 0x412bfb
dec eax
mov dword [ebp - 0x34], eax
mov ecx, esi
mov esi, 0x401d38
push esi
push ecx
mov byte [eax + ecx], bl
call fcn.0041b9c2
pop ecx
pop ecx
test eax, eax
je 0x412ba4
push 0x401d3c
push ebx
call fcn.0041b9c2
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x412c2d
xor eax, eax
jmp 0x412d9a
push esi
push ebx
call fcn.0041b9c2
pop ecx
pop ecx
test eax, eax
je 0x412ba4
push 0x401d3c
push ebx
call fcn.0041b9c2
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x412c26
push dword [ebp - 0x30]
lea eax, [edi + 0x410]
push 0x104
push eax
call fcn.00419fc8
push esi
lea eax, [edi + 0x104]
push 0x104
push eax
call fcn.00419fc8
add esp, 0x18
cmp byte [esi], 0x2f
jne 0x412cd7
cmp byte [esi + 1], 0x2f
jne 0x412cd7
mov al, byte [esi + 2]
cmp al, 0x41
jl 0x412c93
cmp al, 0x5a
jle 0x412c9b
cmp al, 0x61
jl 0x412cd7
cmp al, 0x7a
jg 0x412cd7
cmp byte [esi + 3], 0x3a
jne 0x412cd7
lea esi, [edi + 0x208]
mov byte [esi], al
mov eax, dword [ebp - 0x2c]
add eax, 4
push 0x2f
push eax
mov byte [edi + 0x209], 0x3a
call fcn.0041a099
pop ecx
pop ecx
test eax, eax
je 0x412ba4
push eax
push 0x102
lea eax, [edi + 0x20a]
push eax
jmp 0x412ce7
mov eax, dword [ebp - 0x2c]
push eax
lea esi, [edi + 0x208]
push 0x104
push esi
call fcn.00419fc8
add esp, 0xc
push 0x401d40
push 0x104
push esi
call fcn.0041a027
push dword [ebp - 0x30]
push 0x104
push esi
call fcn.0041a027
push 0x401d38
push ebx
call fcn.0041b9c2
add esp, 0x20
test eax, eax
je 0x412ba4
push 0x401d38
push ebx
call fcn.0041b9c2
pop ecx
pop ecx
test eax, eax
je 0x412ba4
push 0x401d48
push ebx
call fcn.0041b9c2
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
test eax, eax
je 0x412ba4
push eax
mov ebx, 0x104
lea eax, [edi + 0x30c]
push ebx
push eax
call fcn.00419fc8
push dword [ebp - 0x38]
push ebx
push esi
call fcn.0041a027
add esp, 0x18
jmp 0x412d7b
cmp byte [esi], 0x2f
jne 0x412d7a
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x412d72
jmp 0x412ba1
mov esi, eax
push 0x2000
push esi
push dword [0x429eb0]
call fcn.00413a00
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419fba
leave
ret 4