Function at 0x423ba0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x48c
mov eax, dword [esp + 0x4a0]
mov dword [esp + 4], 0x48a1e0
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call sub.msvcrt.dll_fopen
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov edi, eax
lea eax, [esp + 0x4a]
mov dword [esp + 4], 0xe
mov dword [esp], eax
call sub.msvcrt.dll_fread
dec eax
jne 0x423bf8
cmp byte [esp + 0x4a], 0x42
jne 0x423bf8
cmp byte [esp + 0x4b], 0x4d
je 0x423c30
mov dword [esp + 8], str.Malformed_bmp_file
mov eax, dword [0x4b61c0]
mov dword [esp + 4], str.raw_image_t::read_bmp
mov dword [esp], eax
call fcn.00425600
mov dword [esp], edi
call sub.msvcrt.dll_fclose
xor eax, eax
add esp, 0x48c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0xe
mov dword [esp], edi
mov ebp, dword [esp + 0x54]
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x423bf8
lea eax, [esp + 0x58]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x28
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, eax
cmp eax, 1
jne 0x423bf8
mov esi, dword [esp + 0x58]
cmp esi, 0x27
jbe 0x423bf8
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x78]
mov bx, word [esp + 0x66]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x423cc0
cmp ecx, 1
je 0x423e73
mov dword [esp + 8], str.Can_only_use_8_bit__RLE_or_normal__or_24_bit_bitmaps_
jmp 0x423c00
mov eax, ebx
and eax, 0xffffffef
cmp ax, 8
jne 0x423cb2
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x24]
mov eax, edx
mov dword [esp + 0x34], ecx
sar eax, 0x1f
mov ecx, dword [esp + 0x28]
xor edx, eax
sub edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov dword [eax + 4], edx
mov eax, ecx
sar eax, 0x1f
xor ecx, eax
sub ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], 0x2001
mov eax, edx
imul eax, ecx
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0041c8c0
mov edx, dword [esp + 0x1c]
test eax, eax
mov ecx, dword [esp + 0x34]
mov dword [edx], eax
mov edx, dword [esp + 0x38]
je 0x424138
cmp bx, 8
je 0x423ed9
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], edi
mov dword [esp + 0x20], edx
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x423bf8
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
test ebp, ebp
je 0x424310
mov ecx, edx
mov ebx, dword [esp + 0x1c]
lea edx, [ecx - 1]
mov esi, dword [esp + 0x28]
mov ebp, edx
test esi, esi
js 0x423d8c
mov ebp, dword [esp + 0x30]
sub ebp, ecx
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x424116
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
jmp 0x423e34
cmp ecx, 0xffffffff
je 0x423bf8
mov edx, dword [ebx + 4]
mov al, byte [ebx + 0xd]
imul edx, ebp
shr al, 3
add edx, esi
and eax, 0xff
imul eax, edx
mov edx, dword [ebx]
mov byte [edx + eax], cl
mov cl, byte [esp + 0x20]
mov edx, dword [ebx + 4]
mov al, byte [ebx + 0xd]
imul edx, ebp
shr al, 3
add edx, esi
and eax, 0xff
imul eax, edx
mov edx, dword [ebx]
mov byte [edx + eax + 1], cl
mov cl, byte [esp + 0x1c]
mov edx, dword [ebx + 4]
mov al, byte [ebx + 0xd]
imul edx, ebp
shr al, 3
add edx, esi
and eax, 0xff
imul eax, edx
mov edx, dword [ebx]
mov byte [edx + eax + 2], cl
mov edx, dword [ebx + 4]
mov al, byte [ebx + 0xd]
imul edx, ebp
shr al, 3
add edx, esi
and eax, 0xff
inc esi
imul eax, edx
mov edx, dword [ebx]
cmp dword [esp + 0x24], esi
mov byte [edx + eax + 3], 0xff
je 0x42410e
mov dword [esp], edi
call sub.msvcrt.dll_fgetc
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fgetc
mov dword [esp], edi
mov dword [esp + 0x20], eax
call sub.msvcrt.dll_fgetc
cmp dword [esp + 0x1c], 0xffffffff
mov ecx, eax
sete dl
cmp dword [esp + 0x20], 0xffffffff
sete al
or al, dl
je 0x423da8
jmp 0x423bf8
cmp bx, 8
jne 0x423cb2
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, ebx
mov dword [esp + 0x34], ecx
sar eax, 0x1f
mov ecx, dword [esp + 0x1c]
xor ebx, eax
sub ebx, eax
mov eax, edx
sar eax, 0x1f
mov dword [ecx + 4], ebx
xor edx, eax
mov word [ecx + 0xc], 0x2001
sub edx, eax
mov eax, ebx
imul eax, edx
shl eax, 2
mov dword [ecx + 8], edx
mov dword [esp + 4], eax
mov dword [esp + 0x2c], ebx
mov eax, dword [ecx]
mov ebx, ecx
mov dword [esp], eax
mov dword [esp + 0x30], edx
call fcn.0041c8c0
mov ecx, dword [esp + 0x34]
mov dword [ebx], eax
test eax, eax
je 0x424138
lea ebx, [esi + 0xe]
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x4240f0
call sub.msvcrt.dll_fseek
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x423bf8
cmp dword [esp + 0x20], 0x100
ja 0x423bf8
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
lea esi, [esi]
mov dword [esp], edi
call sub.msvcrt.dll_fgetc
mov dword [esp], edi
mov esi, eax
call sub.msvcrt.dll_fgetc
mov dword [esp], edi
mov ebp, eax
call sub.msvcrt.dll_fgetc
mov dword [esp], edi
mov dword [esp + 0x24], eax
call sub.msvcrt.dll_fgetc
cmp esi, 0xffffffff
je 0x423bf8
cmp ebp, 0xffffffff
je 0x423bf8
mov ecx, dword [esp + 0x24]
cmp ecx, 0xffffffff
je 0x423bf8
inc eax
je 0x423bf8
mov eax, ebp
mov byte [esp + ebx*4 + 0x80], cl
mov byte [esp + ebx*4 + 0x81], al
mov eax, esi
mov byte [esp + ebx*4 + 0x82], al
mov byte [esp + ebx*4 + 0x83], 0xff
inc ebx
cmp dword [esp + 0x20], ebx
jne 0x423f28
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], ebp
mov dword [esp], edi
mov dword [esp + 0x20], ecx
call sub.msvcrt.dll_fseek
mov ecx, dword [esp + 0x20]
mov esi, eax
test eax, eax
jne 0x423bf8
test ecx, ecx
jne 0x42417b
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov eax, esi
mov ebx, dword [esp + 0x1c]
neg eax
and eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
dec eax
imul esi, eax
mov dword [esp + 0x24], esi
xor esi, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x20], esi
je 0x424310
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x24]
jns 0x42401e
mov eax, dword [esp + 0x38]
mov dl, byte [ebx + 0xd]
xor esi, esi
shr dl, 3
mov ebp, edx
and ebp, 0xff
imul ebp, eax
cmp dword [esp + 0x2c], 0
je 0x42442d
mov dword [esp + 0x1c], ebx
jmp 0x4240da
shl eax, 2
mov ebx, dword [esp + 0x1c]
mov dl, byte [ebx + 0xd]
mov ecx, dword [ebx]
shr dl, 3
add ecx, ebp
and edx, 0xff
mov bl, byte [esp + eax + 0x80]
imul edx, esi
mov byte [ecx + edx], bl
mov ebx, dword [esp + 0x1c]
mov dl, byte [ebx + 0xd]
mov ecx, dword [ebx]
shr dl, 3
add ecx, ebp
and edx, 0xff
mov bl, byte [esp + eax + 0x81]
imul edx, esi
mov byte [edx + ecx + 1], bl
mov ebx, dword [esp + 0x1c]
mov dl, byte [ebx + 0xd]
mov ecx, dword [ebx]
shr dl, 3
add ecx, ebp
and edx, 0xff
mov bl, byte [esp + eax + 0x82]
imul edx, esi
mov al, byte [esp + eax + 0x83]
mov byte [edx + ecx + 2], bl
mov ebx, dword [esp + 0x1c]
mov dl, byte [ebx + 0xd]
mov ecx, dword [ebx]
shr dl, 3
add ecx, ebp
and edx, 0xff
imul edx, esi
inc esi
cmp dword [esp + 0x2c], esi
mov byte [edx + ecx + 3], al
je 0x42442d
mov dword [esp], edi
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
jne 0x424045
jmp 0x423bf8
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x423bf8
mov dword [esp + 0x20], 0x100
mov ecx, dword [esp + 0x24]
jmp 0x423f1a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
lea eax, [eax + eax*2]
neg eax
and eax, 3
jne 0x424145
cmp dword [esp + 0x30], ecx
lea eax, [ecx + 1]
je 0x424310
mov ecx, eax
jmp 0x423d79
mov dword [esp + 8], str.Not_enough_memory
jmp 0x423c00
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_fseek
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x424124
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
dec eax
cmp eax, edx
je 0x424124
jmp 0x423bf8
xor ebx, ebx
cmp dword [esp + 0x28], 0
js 0x4244ec
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edi
mov ebp, esi
mov esi, dword [esp + 0x1c]
lea ebx, [eax - 1]
mov edi, ebx
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_feof
mov ebx, eax
test eax, eax
jne 0x42430c
mov eax, dword [esp + 0x28]
test eax, eax
js 0x424302
test edi, edi
js 0x42430c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0x4244e3
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
mov edx, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4244e3
test dl, dl
jne 0x42433f
and eax, 0xff
je 0x42431f
cmp eax, 1
je 0x42430c
cmp eax, 2
je 0x42444d
add eax, ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jmp 0x4242d1
mov edx, dword [esi + 4]
mov cl, byte [esi + 0xd]
imul edx, edi
shr cl, 3
add edx, ebp
and ecx, 0xff
and eax, 0xff
imul edx, ecx
shl eax, 2
mov ecx, dword [esi]
mov bl, byte [esp + eax + 0x80]
mov byte [ecx + edx], bl
mov bl, byte [esp + eax + 0x81]
mov edx, dword [esi + 4]
mov cl, byte [esi + 0xd]
imul edx, edi
shr cl, 3
add edx, ebp
and ecx, 0xff
imul edx, ecx
mov ecx, dword [esi]
mov byte [ecx + edx + 1], bl
mov bl, byte [esp + eax + 0x82]
mov edx, dword [esi + 4]
mov cl, byte [esi + 0xd]
imul edx, edi
shr cl, 3
add edx, ebp
and ecx, 0xff
mov al, byte [esp + eax + 0x83]
imul edx, ecx
mov ecx, dword [esi]
mov byte [ecx + edx + 2], bl
mov ecx, dword [esi + 4]
mov dl, byte [esi + 0xd]
imul ecx, edi
shr dl, 3
add ecx, ebp
and edx, 0xff
inc ebp
imul edx, ecx
mov ecx, dword [esi]
cmp dword [esp + 0x24], ebp
mov byte [ecx + edx + 3], al
je 0x4244a6
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
jne 0x42422f
mov edi, dword [esp + 0x1c]
jmp 0x423bf8
mov eax, dword [esp + 0x20]
inc edi
mov dword [esp], eax
call sub.msvcrt.dll_feof
mov ebp, eax
test eax, eax
jne 0x42430c
cmp dword [esp + 0x30], edi
jg 0x4241c5
mov edi, dword [esp + 0x20]
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov al, 1
jmp 0x423c1f
cmp dword [esp + 0x28], 0
js 0x4242ef
mov eax, dword [esp + 0x20]
dec edi
mov dword [esp], eax
call sub.msvcrt.dll_feof
mov ebp, eax
test eax, eax
je 0x4241bd
jmp 0x42430c
and edx, 0xff
cmp dword [esp + 0x2c], ebp
jle 0x42419b
test edx, edx
je 0x42419b
and eax, 0xff
mov dword [esp + 0x3c], edx
shl eax, 2
mov cl, byte [esp + eax + 0x80]
mov byte [esp + 0x1c], cl
mov cl, byte [esp + eax + 0x81]
mov byte [esp + 0x24], cl
mov cl, byte [esp + eax + 0x82]
mov al, byte [esp + eax + 0x83]
mov byte [esp + 0x34], cl
mov byte [esp + 0x38], al
jmp 0x42439b
cmp dword [esp + 0x2c], ebp
jle 0x42419b
mov ecx, dword [esi + 4]
mov al, byte [esi + 0xd]
imul ecx, edi
shr al, 3
add ecx, ebp
and eax, 0xff
mov dl, byte [esp + 0x1c]
imul eax, ecx
mov ecx, dword [esi]
inc ebx
mov byte [ecx + eax], dl
mov dl, byte [esp + 0x24]
mov ecx, dword [esi + 4]
mov al, byte [esi + 0xd]
imul ecx, edi
shr al, 3
add ecx, ebp
and eax, 0xff
imul eax, ecx
mov ecx, dword [esi]
mov byte [ecx + eax + 1], dl
mov dl, byte [esp + 0x34]
mov ecx, dword [esi + 4]
mov al, byte [esi + 0xd]
imul ecx, edi
shr al, 3
add ecx, ebp
and eax, 0xff
imul eax, ecx
mov ecx, dword [esi]
mov byte [ecx + eax + 2], dl
mov dl, byte [esp + 0x38]
mov ecx, dword [esi + 4]
mov al, byte [esi + 0xd]
imul ecx, edi
shr al, 3
add ecx, ebp
and eax, 0xff
inc ebp
imul eax, ecx
mov ecx, dword [esi]
mov byte [ecx + eax + 3], dl
mov eax, dword [esp + 0x3c]
cmp ebx, eax
jl 0x424391
jmp 0x42419b
cmp dword [esp + 0x34], 0
jne 0x424518
mov esi, dword [esp + 0x2c]
inc dword [esp + 0x20]
add dword [esp + 0x38], esi
sub dword [esp + 0x24], esi
jmp 0x424001
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_fgetc
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
je 0x4244e3
cmp eax, 0xffffffff
je 0x4244e3
and ecx, 0xff
and eax, 0xff
add ebp, ecx
cmp dword [esp + 0x28], 0
js 0x4244fd
sub edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
je 0x4241bd
jmp 0x42430c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
cmp eax, 0xffffffff
je 0x4244e3
test al, 1
je 0x42419b
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x42419b
mov edi, dword [esp + 0x20]
jmp 0x423bf8
mov dword [esp + 0x20], edi
mov ebp, eax
mov edi, ebx
mov esi, dword [esp + 0x1c]
jmp 0x42419b
add edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
je 0x424302
jmp 0x42430c
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fseek
test eax, eax
je 0x424438
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x3c], esi
jle 0x424438
jmp 0x423bf8