Function at 0x456180
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 [0x11621c0]
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x45653a
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.00428df0
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x34], eax
call fcn.00428df0
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x3c], eax
call fcn.00428df0
add ebx, 4
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
push eax
call fcn.00428df0
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x4c], eax
call fcn.00428df0
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x54], eax
call fcn.00428df0
add ebx, 4
mov dword [esp + 0x58], eax
mov ax, word [ebx]
push eax
call fcn.00428dd0
mov cx, word [ebx + 2]
add ebx, 2
push ecx
mov word [esp + 0x64], ax
call fcn.00428dd0
mov edx, dword [ebx + 2]
add ebx, 2
push edx
mov word [esp + 0x6a], ax
call fcn.00428df0
add ebx, 4
mov dword [esp + 0x6c], eax
mov eax, dword [ebx]
push eax
call fcn.00428df0
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x78], eax
call fcn.00428df0
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x80], eax
call fcn.00428df0
add ebx, 4
mov dword [esp + 0x84], eax
mov eax, dword [ebx]
push eax
call fcn.00428df0
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x90], eax
call fcn.00428df0
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 0x4562d0
add ebx, 0x400
cmp byte [esp + 0x28], 0x42
je 0x4562f8
cmp byte [esp + 0x29], 0x4d
je 0x4562f8
mov esi, dword [esp + 0x464]
push esi
push str.LoadBMP:_only_Windows_style_BMP_files_supported___s__n
push 1
call dword [0x1162184]
add esp, 0xc
jmp 0x4562ff
mov esi, dword [esp + 0x464]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x45631a
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 [0x1162184]
add esp, 0x14
mov eax, dword [esp + 0x48]
test eax, eax
je 0x456333
push esi
push str.LoadBMP:_only_uncompressed_BMP_files_supported___s__n
push 1
call dword [0x1162184]
add esp, 0xc
cmp di, 8
jae 0x45634a
push esi
push str.LoadBMP:_monochrome_and_4_bit_BMP_files_not_supported___s__n
push 1
call dword [0x1162184]
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
mov edi, eax
jge 0x456358
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 0x45636e
mov dword [ecx], ebp
mov ecx, dword [esp + 0x470]
test ecx, ecx
je 0x45637b
mov dword [ecx], edi
mov ecx, dword [0xa0b28c]
lea esi, [eax*4]
cmp ecx, 0x100000
jge 0x4563b8
cmp esi, ecx
jg 0x4563c3
push 0x100000
mov dword [0xa0b28c], 0x100000
call fcn.004c3614
mov ecx, dword [0xa0b28c]
add esp, 4
mov dword [0xa0b298], eax
jmp 0x4563bd
mov eax, dword [0xa0b298]
cmp esi, ecx
jle 0x4563e9
jmp 0x4563c8
mov eax, dword [0xa0b298]
test eax, eax
je 0x4563d5
push eax
call fcn.004c27e0
add esp, 4
push esi
mov dword [0xa0b28c], esi
call fcn.004c3614
add esp, 4
mov dword [0xa0b298], eax
mov edx, dword [esp + 0x468]
mov ecx, eax
lea eax, [edi - 1]
test eax, eax
mov dword [edx], ecx
jl 0x456529
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 0x456510
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.0x456449.4
xor ecx, ecx
mov cl, byte [ebp + 0x456558]
jmp dword [ecx*4 + 0x456544]
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 0x4564f9
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 0x4564f9
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 0x4564f9
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 0x4564f9
mov ecx, dword [esp + 0x464]
push ecx
push edi
push str.LoadBMP:_illegal_pixel_size__d_in_file__s_n
push 1
call dword [0x1162184]
add esp, 0x10
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x456438
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 0x45641b
mov edx, dword [esp + 0x18]
push edx
call dword [0x11621c4]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x450
ret