Function at 0x45d5b0
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 0x45dab7
mov ecx, dword [edi + 4]
mov dl, byte [ecx + 8]
cmp dl, 8
jb 0x45d633
cmp dword [ecx + 0x18], ebx
jne 0x45d62e
mov eax, dword [edi + 0x34]
test dword [eax + 0x44], 0x100
je 0x45d633
mov ebx, 1
cmp dword [ecx + 4], ebp
je 0x45d660
test ebx, ebx
jne 0x45d660
cmp dl, 8
jne 0x45d64a
mov dword [esp + 0x18], edi
jmp 0x45d6ef
movzx eax, dl
push eax
push str._d_bpp_BMP_files_not_supported
call fcn.0041b670
add esp, 8
jmp 0x45da8b
cmp dl, 0x18
jne 0x45d68a
test ebx, ebx
jne 0x45d68a
cmp dword [ecx + 0xc], 0xff0000
jne 0x45d68a
cmp dword [ecx + 0x10], 0xff00
jne 0x45d68a
cmp dword [ecx + 0x14], 0xff
jne 0x45d68a
mov dword [esp + 0x18], edi
jmp 0x45d6ef
mov ecx, 0x17401803
test ebx, ebx
mov eax, 0x16362004
cmove eax, ecx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0044d8f0
push 0
lea eax, [esp + 0x88]
push eax
push edi
call fcn.0045aa40
mov edi, eax
add esp, 0x14
mov dword [esp + 0x18], edi
test edi, edi
jne 0x45d6da
movzx eax, byte [esp + 0x84]
push eax
push str.Couldnt_convert_image_to__d_bpp
call fcn.0041b670
add esp, 8
test ebx, ebx
je 0x45d6ef
push 0
push str.SDL_BMP_SAVE_LEGACY_FORMAT
call fcn.0043b670
add esp, 8
mov ebp, eax
test edi, edi
je 0x45da8b
push edi
call fcn.0045b8d0
add esp, 4
test eax, eax
jne 0x45da8b
mov eax, dword [edi + 4]
push esi
movzx eax, byte [eax + 9]
imul eax, dword [edi + 8]
mov dword [esp + 0x24], eax
call fcn.0041f1d0
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], edx
call fcn.0041b590
push 1
push 2
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0041f1f0
push 0
push esi
call fcn.0041f3f0
push 0
push esi
call fcn.0041f3d0
push 0
push esi
call fcn.0041f3d0
push 0
push esi
call fcn.0041f3f0
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 0x45d79d
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x45d7a5
mov dword [esp + 0x2c], 0
test ebx, ebx
je 0x45d7e0
test ebp, ebp
jne 0x45d7e0
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.0041f3f0
push dword [esp + 0x50]
push esi
call fcn.0041f3f0
push dword [esp + 0x34]
push esi
call fcn.0041f3f0
push 1
push esi
call fcn.0041f3d0
push dword [esp + 0x6c]
push esi
call fcn.0041f3d0
push dword [esp + 0x50]
push esi
call fcn.0041f3f0
push dword [esp + 0x80]
push esi
call fcn.0041f3f0
push 0
push esi
call fcn.0041f3f0
add esp, 0x40
push 0
push esi
call fcn.0041f3f0
push dword [esp + 0x34]
push esi
call fcn.0041f3f0
push 0
push esi
call fcn.0041f3f0
add esp, 0x18
test ebx, ebx
je 0x45d8be
test ebp, ebp
jne 0x45d8be
push dword [esp + 0x30]
push esi
call fcn.0041f3f0
push dword [esp + 0x3c]
push esi
call fcn.0041f3f0
push dword [esp + 0x48]
push esi
call fcn.0041f3f0
push dword [esp + 0x54]
push esi
call fcn.0041f3f0
push dword [esp + 0x60]
push esi
call fcn.0041f3f0
add esp, 0x28
xor ebx, ebx
nop dword [eax + eax]
push dword [esp + ebx*4 + 0x58]
push esi
call fcn.0041f3f0
inc ebx
add esp, 8
cmp ebx, 9
jl 0x45d890
push 0
push esi
call fcn.0041f3f0
push 0
push esi
call fcn.0041f3f0
push 0
push esi
call fcn.0041f3f0
add esp, 0x18
mov eax, dword [edi + 4]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x45d918
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
test ebx, ebx
jle 0x45d918
lea edi, [eax + 1]
push 1
push 1
lea eax, [edi + 1]
push eax
push esi
call fcn.0041f1f0
push 1
push 1
push edi
push esi
call fcn.0041f1f0
push 1
push 1
lea eax, [edi - 1]
push eax
push esi
call fcn.0041f1f0
push 1
push 1
lea eax, [edi + 2]
push eax
push esi
call fcn.0041f1f0
add esp, 0x40
add edi, 4
sub ebx, 1
jne 0x45d8d4
mov edi, dword [esp + 0x18]
push esi
call fcn.0041f1d0
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.0041f1a0
add esp, 0x14
test edx, edx
jg 0x45d953
jl 0x45d949
test eax, eax
jae 0x45d953
push 3
call fcn.0041b5a0
add esp, 4
push ebx
push esi
call fcn.0041f3f0
xor eax, eax
add ebx, ebp
push 0
adc eax, dword [esp + 0x28]
push eax
push ebx
push esi
call fcn.0041f1a0
add esp, 0x18
test edx, edx
jg 0x45d983
jl 0x45d979
test eax, eax
jae 0x45d983
push 3
call fcn.0041b5a0
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 0x45d9a2
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 0x45da08
sub ebx, dword [edi + 0x10]
push edx
push 1
push ebx
push esi
call fcn.0041f1f0
mov edx, dword [esp + 0x30]
add esp, 0x10
cmp eax, edx
jne 0x45d9fe
test ebp, ebp
je 0x45d9f7
mov byte [esp + 0x13], 0
jle 0x45d9f7
mov edi, ebp
push 1
push 1
lea eax, [esp + 0x1b]
push eax
push esi
call fcn.0041f1f0
add esp, 0x10
sub edi, 1
jne 0x45d9d8
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp ebx, dword [edi + 0x14]
ja 0x45d9b3
jmp 0x45da08
push 2
call fcn.0041b5a0
add esp, 4
push esi
call fcn.0041f1d0
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.0041f1a0
add esp, 0x14
test edx, edx
jg 0x45da43
jl 0x45da39
test eax, eax
jae 0x45da43
push 3
call fcn.0041b5a0
add esp, 4
push ebx
push esi
call fcn.0041f3f0
xor eax, eax
add ebx, ebp
push 0
adc eax, dword [esp + 0x28]
push eax
push ebx
push esi
call fcn.0041f1a0
add esp, 0x18
test edx, edx
jg 0x45da73
jl 0x45da69
test eax, eax
jae 0x45da73
push 3
call fcn.0041b5a0
add esp, 4
push edi
call fcn.0045cac0
add esp, 4
cmp edi, dword [esp + 0x54]
je 0x45da8b
push edi
call fcn.0045b5c0
add esp, 4
cmp dword [esp + 0xb8], 0
je 0x45da9e
push esi
call fcn.0041f180
add esp, 4
push 0x5199be
call fcn.0041b650
push eax
call fcn.0041cc30
add esp, 8
neg eax
sbb eax, eax
jmp 0x45daba
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