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

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x450
lea ecx, [esp + 8]
mov dword [eax], 0
push ebp
push ecx
push edx
call dword [0x11d988c]
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x457dea
mov dl, byte [eax + 1]
mov cl, byte [eax]
push ebx
lea ebx, [eax + 1]
mov eax, dword [ebx + 1]
inc ebx
push esi
push edi
push eax
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], dl
call fcn.0042b030
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x34], eax
call fcn.0042b030
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x3c], eax
call fcn.0042b030
add ebx, 4
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
push eax
call fcn.0042b030
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x4c], eax
call fcn.0042b030
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x54], eax
call fcn.0042b030
add ebx, 4
mov dword [esp + 0x58], eax
mov ax, word [ebx]
push eax
call fcn.0042b010
mov cx, word [ebx + 2]
add ebx, 2
push ecx
mov word [esp + 0x64], ax
call fcn.0042b010
mov edx, dword [ebx + 2]
add ebx, 2
push edx
mov word [esp + 0x6a], ax
call fcn.0042b030
add ebx, 4
mov dword [esp + 0x6c], eax
mov eax, dword [ebx]
push eax
call fcn.0042b030
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x78], eax
call fcn.0042b030
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x80], eax
call fcn.0042b030
add ebx, 4
mov dword [esp + 0x84], eax
mov eax, dword [ebx]
push eax
call fcn.0042b030
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x90], eax
call fcn.0042b030
add esp, 0x38
mov dword [esp + 0x5c], eax
add ebx, 4
mov ecx, 0x100
mov esi, ebx
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov di, word [esp + 0x46]
cmp di, 8
jne 0x457b80
add ebx, 0x400
cmp byte [esp + 0x28], 0x42
je 0x457ba8
cmp byte [esp + 0x29], 0x4d
je 0x457ba8
mov esi, dword [esp + 0x464]
push esi
push str.LoadBMP:_only_Windows_style_BMP_files_supported___s__n
push 1
call dword [0x11d9844]
add esp, 0xc
jmp 0x457baf
mov esi, dword [esp + 0x464]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x457bca
push esi
push ebp
push eax
push str.LoadBMP:_header_size_does_not_match_file_size___d_vs.__d____s__n
push 1
call dword [0x11d9844]
add esp, 0x14
mov eax, dword [esp + 0x48]
test eax, eax
je 0x457be3
push esi
push str.LoadBMP:_only_uncompressed_BMP_files_supported___s__n
push 1
call dword [0x11d9844]
add esp, 0xc
cmp di, 8
jae 0x457bfa
push esi
push str.LoadBMP:_monochrome_and_4_bit_BMP_files_not_supported___s__n
push 1
call dword [0x11d9844]
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
mov edi, eax
jge 0x457c08
neg eax
mov edi, eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x46c]
mov eax, edi
imul eax, ebp
test ecx, ecx
je 0x457c1e
mov dword [ecx], ebp
mov ecx, dword [esp + 0x470]
test ecx, ecx
je 0x457c2b
mov dword [ecx], edi
mov ecx, dword [0xa1a9c8]
lea esi, [eax*4]
cmp ecx, 0x100000
jge 0x457c68
cmp esi, ecx
jg 0x457c73
push 0x100000
mov dword [0xa1a9c8], 0x100000
call fcn.004c38f0
mov ecx, dword [0xa1a9c8]
add esp, 4
mov dword [0xa1a9d4], eax
jmp 0x457c6d
mov eax, dword [0xa1a9d4]
cmp esi, ecx
jle 0x457c99
jmp 0x457c78
mov eax, dword [0xa1a9d4]
test eax, eax
je 0x457c85
push eax
call fcn.004c2ff0
add esp, 4
push esi
mov dword [0xa1a9c8], esi
call fcn.004c38f0
add esp, 4
mov dword [0xa1a9d4], eax
mov edx, dword [esp + 0x468]
mov ecx, eax
lea eax, [edi - 1]
test eax, eax
mov dword [edx], ecx
jl 0x457dd9
mov esi, eax
mov edx, ebp
imul esi, ebp
neg edx
shl edx, 2
lea esi, [ecx + esi*4]
inc eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
test ebp, ebp
jle 0x457dc0
mov edi, dword [esp + 0x46]
mov eax, dword [esp + 0x3c]
and edi, 0xffff
mov dword [esp + 0x1c], eax
lea ebp, [edi - 8]
cmp ebp, 0x18
ja case.0x457cf9.4
xor ecx, ecx
mov cl, byte [ebp + 0x457e08]
jmp dword [ecx*4 + 0x457df4]
xor eax, eax
mov al, byte [ebx]
inc ebx
inc esi
mov dl, byte [esp + eax*4 + 0x62]
mov cl, byte [esp + eax*4 + 0x61]
mov byte [esi - 1], dl
mov dl, byte [esp + eax*4 + 0x60]
mov byte [esi], cl
inc esi
mov byte [esi], dl
inc esi
mov byte [esi], 0xff
inc esi
jmp 0x457da9
mov ax, word [esi]
add esi, 2
mov ecx, eax
mov edx, eax
shr ecx, 7
and cl, 0xf8
mov byte [esi], cl
inc esi
shr edx, 2
and dl, 0xf8
mov byte [esi], dl
inc esi
shl al, 3
mov byte [esi], al
inc esi
mov byte [esi], 0xff
inc esi
jmp 0x457da9
mov al, byte [ebx]
mov cl, byte [ebx + 1]
inc ebx
inc ebx
mov dl, byte [ebx]
inc ebx
mov byte [esi], dl
inc esi
mov byte [esi], cl
inc esi
mov byte [esi], al
inc esi
mov byte [esi], 0xff
inc esi
jmp 0x457da9
mov al, byte [ebx]
mov cl, byte [ebx + 1]
inc ebx
inc ebx
mov dl, byte [ebx]
inc ebx
mov byte [esp + 0x12], dl
mov dl, byte [ebx]
inc ebx
mov byte [esp + 0x13], dl
mov dl, byte [esp + 0x12]
mov byte [esi], dl
inc esi
mov byte [esi], cl
inc esi
mov byte [esi], al
mov al, byte [esp + 0x13]
inc esi
mov byte [esi], al
inc esi
jmp 0x457da9
mov ecx, dword [esp + 0x464]
push ecx
push edi
push str.LoadBMP:_illegal_pixel_size__d_in_file__s_n
push 1
call dword [0x11d9844]
add esp, 0x10
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x457ce8
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add esi, edx
dec eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
jne 0x457ccb
mov edx, dword [esp + 0x18]
push edx
call dword [0x11d9890]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x450
ret