Function at 0x45c9e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
xor ebx, ebx
mov word [esp + 0xc], 0x4d42
push esi
mov esi, dword [esp + 0xb0]
xorps xmm0, xmm0
push edi
mov edi, dword [esp + 0xb0]
xor ebp, ebp
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x78], ebx
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x68], xmm0
test esi, esi
je 0x45cee7
mov ecx, dword [edi + 4]
mov dl, byte [ecx + 8]
cmp dl, 8
jb 0x45ca63
cmp dword [ecx + 0x18], ebx
jne 0x45ca5e
mov eax, dword [edi + 0x34]
test dword [eax + 0x44], 0x100
je 0x45ca63
mov ebx, 1
cmp dword [ecx + 4], ebp
je 0x45ca90
test ebx, ebx
jne 0x45ca90
cmp dl, 8
jne 0x45ca7a
mov dword [esp + 0x18], edi
jmp 0x45cb1f
movzx eax, dl
push eax
push str._d_bpp_BMP_files_not_supported
call fcn.0041ad60
add esp, 8
jmp 0x45cebb
cmp dl, 0x18
jne 0x45caba
test ebx, ebx
jne 0x45caba
cmp dword [ecx + 0xc], 0xff0000
jne 0x45caba
cmp dword [ecx + 0x10], 0xff00
jne 0x45caba
cmp dword [ecx + 0x14], 0xff
jne 0x45caba
mov dword [esp + 0x18], edi
jmp 0x45cb1f
mov ecx, 0x17401803
test ebx, ebx
mov eax, 0x16362004
cmove eax, ecx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0044cd50
push 0
lea eax, [esp + 0x88]
push eax
push edi
call fcn.00459ec0
mov edi, eax
add esp, 0x14
mov dword [esp + 0x18], edi
test edi, edi
jne 0x45cb0a
movzx eax, byte [esp + 0x84]
push eax
push str.Couldnt_convert_image_to__d_bpp
call fcn.0041ad60
add esp, 8
test ebx, ebx
je 0x45cb1f
push 0
push str.SDL_BMP_SAVE_LEGACY_FORMAT
call fcn.0043aca0
add esp, 8
mov ebp, eax
test edi, edi
je 0x45cebb
push edi
call fcn.0045ad30
add esp, 4
test eax, eax
jne 0x45cebb
mov eax, dword [edi + 4]
push esi
movzx eax, byte [eax + 9]
imul eax, dword [edi + 8]
mov dword [esp + 0x24], eax
call fcn.0041e7b0
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], edx
call fcn.0041ac80
push 1
push 2
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0041e7d0
push 0
push esi
call fcn.0041e9d0
push 0
push esi
call fcn.0041e9b0
push 0
push esi
call fcn.0041e9b0
push 0
push esi
call fcn.0041e9d0
mov ecx, dword [edi + 4]
add esp, 0x34
mov eax, dword [edi + 8]
mov edx, 0x28
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x24], eax
movzx eax, byte [ecx + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x10]
imul eax, dword [esp + 0x24]
mov dword [esp + 0x28], 0
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x45cbcd
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x45cbd5
mov dword [esp + 0x2c], 0
test ebx, ebx
je 0x45cc10
test ebp, ebp
jne 0x45cc10
lea edx, [ebp + 0x6c]
mov dword [esp + 0x28], 3
mov dword [esp + 0x30], 0xff0000
mov dword [esp + 0x34], 0xff00
mov dword [esp + 0x38], 0xff
mov dword [esp + 0x3c], 0xff000000
mov dword [esp + 0x40], 0x57696e20
push edx
push esi
call fcn.0041e9d0
push dword [esp + 0x50]
push esi
call fcn.0041e9d0
push dword [esp + 0x34]
push esi
call fcn.0041e9d0
push 1
push esi
call fcn.0041e9b0
push dword [esp + 0x6c]
push esi
call fcn.0041e9b0
push dword [esp + 0x50]
push esi
call fcn.0041e9d0
push dword [esp + 0x80]
push esi
call fcn.0041e9d0
push 0
push esi
call fcn.0041e9d0
add esp, 0x40
push 0
push esi
call fcn.0041e9d0
push dword [esp + 0x34]
push esi
call fcn.0041e9d0
push 0
push esi
call fcn.0041e9d0
add esp, 0x18
test ebx, ebx
je 0x45ccee
test ebp, ebp
jne 0x45ccee
push dword [esp + 0x30]
push esi
call fcn.0041e9d0
push dword [esp + 0x3c]
push esi
call fcn.0041e9d0
push dword [esp + 0x48]
push esi
call fcn.0041e9d0
push dword [esp + 0x54]
push esi
call fcn.0041e9d0
push dword [esp + 0x60]
push esi
call fcn.0041e9d0
add esp, 0x28
xor ebx, ebx
nop dword [eax + eax]
push dword [esp + ebx*4 + 0x58]
push esi
call fcn.0041e9d0
inc ebx
add esp, 8
cmp ebx, 9
jl 0x45ccc0
push 0
push esi
call fcn.0041e9d0
push 0
push esi
call fcn.0041e9d0
push 0
push esi
call fcn.0041e9d0
add esp, 0x18
mov eax, dword [edi + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x45cd48
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
test ebx, ebx
jle 0x45cd48
lea edi, [eax + 1]
push 1
push 1
lea eax, [edi + 1]
push eax
push esi
call fcn.0041e7d0
push 1
push 1
push edi
push esi
call fcn.0041e7d0
push 1
push 1
lea eax, [edi - 1]
push eax
push esi
call fcn.0041e7d0
push 1
push 1
lea eax, [edi + 2]
push eax
push esi
call fcn.0041e7d0
add esp, 0x40
add edi, 4
sub ebx, 1
jne 0x45cd04
mov edi, dword [esp + 0x18]
push esi
call fcn.0041e7b0
mov ebp, dword [esp + 0x48]
mov ebx, eax
mov ecx, dword [esp + 0x20]
mov edx, ebp
sub ebx, ebp
add edx, 0xa
push 0
adc ecx, 0
push ecx
push edx
push esi
call fcn.0041e780
add esp, 0x14
test edx, edx
jg 0x45cd83
jl 0x45cd79
test eax, eax
jae 0x45cd83
push 3
call fcn.0041ac90
add esp, 4
push ebx
push esi
call fcn.0041e9d0
xor eax, eax
add ebx, ebp
push 0
adc eax, dword [esp + 0x28]
push eax
push ebx
push esi
call fcn.0041e780
add esp, 0x18
test edx, edx
jg 0x45cdb3
jl 0x45cda9
test eax, eax
jae 0x45cdb3
push 3
call fcn.0041ac90
add esp, 4
mov ebx, dword [edi + 0xc]
imul ebx, dword [edi + 0x10]
mov edx, dword [esp + 0x20]
mov ebp, edx
mov ecx, dword [edi + 0x14]
add ebx, ecx
and ebp, 0x80000003
jns 0x45cdd2
dec ebp
or ebp, 0xfffffffc
inc ebp
mov eax, 4
sub eax, ebp
neg ebp
sbb ebp, ebp
and ebp, eax
cmp ebx, ecx
jbe 0x45ce38
sub ebx, dword [edi + 0x10]
push edx
push 1
push ebx
push esi
call fcn.0041e7d0
mov edx, dword [esp + 0x30]
add esp, 0x10
cmp eax, edx
jne 0x45ce2e
test ebp, ebp
je 0x45ce27
mov byte [esp + 0x13], 0
jle 0x45ce27
mov edi, ebp
push 1
push 1
lea eax, [esp + 0x1b]
push eax
push esi
call fcn.0041e7d0
add esp, 0x10
sub edi, 1
jne 0x45ce08
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp ebx, dword [edi + 0x14]
ja 0x45cde3
jmp 0x45ce38
push 2
call fcn.0041ac90
add esp, 4
push esi
call fcn.0041e7b0
mov ebp, dword [esp + 0x48]
mov ebx, eax
mov ecx, dword [esp + 0x20]
mov edx, ebp
sub ebx, ebp
add edx, 2
push 0
adc ecx, 0
push ecx
push edx
push esi
call fcn.0041e780
add esp, 0x14
test edx, edx
jg 0x45ce73
jl 0x45ce69
test eax, eax
jae 0x45ce73
push 3
call fcn.0041ac90
add esp, 4
push ebx
push esi
call fcn.0041e9d0
xor eax, eax
add ebx, ebp
push 0
adc eax, dword [esp + 0x28]
push eax
push ebx
push esi
call fcn.0041e780
add esp, 0x18
test edx, edx
jg 0x45cea3
jl 0x45ce99
test eax, eax
jae 0x45cea3
push 3
call fcn.0041ac90
add esp, 4
push edi
call fcn.0045bf30
add esp, 4
cmp edi, dword [esp + 0x54]
je 0x45cebb
push edi
call fcn.0045aa20
add esp, 4
cmp dword [esp + 0xb8], 0
je 0x45cece
push esi
call fcn.0041e760
add esp, 4
push 0x51a9ae
call fcn.0041ad40
push eax
call fcn.0041c300
add esp, 8
neg eax
sbb eax, eax
jmp 0x45ceea
or eax, 0xffffffff
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401033
add esp, 0x9c
ret