Function at 0x4136b3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push str.f:_sourcelcc_startepadib.c
push 0xea0000
push str.LoadBMP
mov dword [0x44100c], ebp
sub esp, 0x30
mov ecx, 0xc
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4136d3
push ebx
push esi
push edi
mov byte [ebp - 8], 1
mov byte [ebp - 8], 8
mov edi, dword [ebp + 8]
add edi, 0x4e
mov dword [ebp - 0x10], edi
mov byte [ebp - 8], 0xa
push 0x4fa4cc
push dword [ebp + 0xc]
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [0x44100c], ebp
mov dword [ebp - 0x1c], eax
cmp eax, 0
jne 0x413720
inc dword [ebp - 8]
mov eax, 0
jmp 0x413bde
mov byte [ebp - 8], 0xd
push 2
push 0
push dword [ebp - 0x1c]
call sub.CRTDLL.DLL_fseek
add esp, 0xc
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push dword [ebp - 0x1c]
call sub.CRTDLL.DLL_ftell
add esp, 4
mov dword [0x44100c], ebp
mov dword [ebp - 0x14], eax
inc dword [ebp - 8]
push dword [ebp - 0x1c]
call sub.CRTDLL.DLL_rewind
add esp, 4
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x11
push dword [ebp - 0x1c]
push 0xe
push 1
lea edi, [ebp - 0x2e]
push edi
call sub.CRTDLL.DLL_fread
add esp, 0x10
mov dword [0x44100c], ebp
inc dword [ebp - 8]
cmp word [ebp - 0x2e], 0x4d42
jne 0x413794
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0x2c], edi
je 0x4137b6
mov byte [ebp - 8], 0x13
push dword [ebp - 0x1c]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov eax, 0
jmp 0x413bde
mov byte [ebp - 8], 0x17
sub dword [ebp - 0x14], 0xe
inc dword [ebp - 8]
push dword [ebp - 0x14]
push 0
call sub.KERNEL32.dll_GlobalAlloc
mov dword [0x44100c], ebp
mov esi, dword [ebp - 0x10]
mov dword [esi], eax
cmp eax, 0
jne 0x4137fc
inc dword [ebp - 8]
push dword [ebp - 0x1c]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov eax, 0
jmp 0x413bde
mov byte [ebp - 8], 0x1d
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push 1
mov edi, dword [ebp - 0x10]
push dword [edi]
call sub.CRTDLL.DLL_fread
add esp, 0x10
mov dword [0x44100c], ebp
cmp eax, dword [ebp - 0x14]
je 0x413841
inc dword [ebp - 8]
push dword [ebp - 0x1c]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov eax, 0
jmp 0x413bde
mov byte [ebp - 8], 0x22
push dword [ebp - 0x1c]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.00412f41
add esp, 4
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x25
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
cmp word [edi + 0xe], 1
jne 0x41395b
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
movzx ebx, byte [edi + 2]
movzx edx, byte [edi + 1]
mov esi, ebx
add esi, edx
movzx ebx, byte [edi]
add esi, ebx
movzx ebx, byte [edi + 6]
movzx edx, byte [edi + 5]
add ebx, edx
movzx edx, byte [edi + 4]
mov edi, ebx
add edi, edx
cmp esi, edi
jge 0x413bd9
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
mov byte [edi + 2], 0xff
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
mov byte [edi + 1], 0xff
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
mov byte [edi], 0xff
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
mov byte [edi + 6], 0
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
mov byte [edi + 5], 0
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x14]
mov byte [edi + 4], 0
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x18]
mov dword [ebp - 0x18], edi
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
mov dword [ebp - 0x14], edi
jmp 0x41393b
mov byte [ebp - 8], 0x30
mov edi, dword [ebp - 0x18]
mov esi, edi
add esi, 1
mov dword [ebp - 0x18], esi
movzx ebx, byte [edi]
mov esi, ebx
xor esi, 0xff
mov ebx, esi
mov byte [edi], bl
mov byte [ebp - 8], 0x2f
mov edi, dword [ebp - 0x14]
mov esi, edi
sub esi, 1
mov dword [ebp - 0x14], esi
cmp edi, 0
jne 0x41391d
mov byte [ebp - 8], 0x31
inc dword [ebp - 8]
jmp 0x413bd9
mov byte [ebp - 8], 0x33
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
mov edi, dword [edi + 0x10]
cmp edi, 2
je 0x413972
cmp edi, 1
jne 0x4139b4
mov byte [ebp - 8], 0x34
push dword [ebp - 0x10]
call fcn.004130cb
add esp, 4
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x413bd9
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
push dword [edi]
call sub.KERNEL32.dll_GlobalFree
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov eax, 0
jmp 0x413bde
mov byte [ebp - 8], 0x39
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
cmp word [edi + 0xe], 0x10
jne 0x413a0a
inc dword [ebp - 8]
push 0
push 0
push dword [ebp - 0x10]
call fcn.0041688a
add esp, 0xc
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x413bd9
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
push dword [edi]
call sub.KERNEL32.dll_GlobalFree
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov eax, 0
jmp 0x413bde
mov byte [ebp - 8], 0x3f
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
cmp word [edi + 0xe], 0x20
jne 0x413bd5
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
add edi, 0x28
mov dword [ebp - 0x38], edi
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
cmp dword [edi], 0x28
je 0x413a4c
mov edi, dword [ebp - 0x38]
cmp dword [edi + 0xc], 0xff
jne 0x413b9a
mov byte [ebp - 8], 0x42
mov edi, dword [ebp + 8]
mov esi, edi
add esi, 0xa
push esi
push dword [ebp - 0x10]
call fcn.00419e1b
add esp, 8
mov dword [0x44100c], ebp
mov esi, eax
mov word [edi + 8], si
movzx edi, si
cmp edi, 0
je 0x413b96
inc dword [ebp - 8]
mov dword [ebp - 0x34], 0
jmp 0x413b80
mov byte [ebp - 8], 0x44
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov esi, dword [esi + 8]
sub esi, dword [ebp - 0x34]
sub esi, 1
mul esi
mov dword [ebp - 0x3c], eax
mov esi, dword [ebp - 0x3c]
add esi, dword [edi + 0x18]
mov dword [ebp - 0x18], esi
inc dword [ebp - 8]
mov dword [ebp - 0x20], 0
jmp 0x413b63
mov byte [ebp - 8], 0x46
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
cmp dword [edi], 0x28
jne 0x413b11
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + 3]
cmp ebx, dword [0x43efd0]
jge 0x413b54
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov bl, byte [esi + 0xa]
mov byte [edi], bl
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov bl, byte [esi + 0xb]
mov byte [edi + 1], bl
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov bl, byte [esi + 0xc]
mov byte [edi + 2], bl
mov byte [ebp - 8], 0x4c
jmp 0x413b54
mov byte [ebp - 8], 0x4e
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi]
cmp ebx, dword [0x43efd0]
jge 0x413b50
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov bl, byte [esi + 0xa]
mov byte [edi + 1], bl
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov bl, byte [esi + 0xb]
mov byte [edi + 2], bl
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov bl, byte [esi + 0xc]
mov byte [edi + 3], bl
mov byte [ebp - 8], 0x53
mov byte [ebp - 8], 0x54
add dword [ebp - 0x18], 4
mov byte [ebp - 8], 0x45
inc dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
mov edi, dword [edi + 4]
cmp dword [ebp - 0x20], edi
jl 0x413abe
mov byte [ebp - 8], 0x56
mov byte [ebp - 8], 0x43
inc dword [ebp - 0x34]
mov edi, dword [ebp - 0x10]
mov edi, dword [edi + 0x10]
mov edi, dword [edi + 8]
cmp dword [ebp - 0x34], edi
jl 0x413a8b
mov byte [ebp - 8], 0x57
mov byte [ebp - 8], 0x58
mov byte [ebp - 8], 0x59
push dword [ebp - 0x10]
call fcn.00416111
add esp, 4
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x413bd1
inc dword [ebp - 8]
mov edi, dword [ebp - 0x10]
push dword [edi]
call sub.KERNEL32.dll_GlobalFree
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov eax, 0
jmp 0x413bde
mov byte [ebp - 8], 0x5d
mov byte [ebp - 8], 0x5f
mov eax, 1
mov byte [ebp - 8], 0x60
cmp dword [ebp - 0xc], 0x4fa184
je 0x413bf5
push 0
call fcn.0042b684
add esp, 4
pop edi
pop esi
pop ebx
leave
ret