Function at 0x4564c0
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 [0x1173740]
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x45687a
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.00429210
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x34], eax
call fcn.00429210
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x3c], eax
call fcn.00429210
add ebx, 4
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
push eax
call fcn.00429210
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x4c], eax
call fcn.00429210
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x54], eax
call fcn.00429210
add ebx, 4
mov dword [esp + 0x58], eax
mov ax, word [ebx]
push eax
call fcn.004291f0
mov cx, word [ebx + 2]
add ebx, 2
push ecx
mov word [esp + 0x64], ax
call fcn.004291f0
mov edx, dword [ebx + 2]
add ebx, 2
push edx
mov word [esp + 0x6a], ax
call fcn.00429210
add ebx, 4
mov dword [esp + 0x6c], eax
mov eax, dword [ebx]
push eax
call fcn.00429210
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x78], eax
call fcn.00429210
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x80], eax
call fcn.00429210
add ebx, 4
mov dword [esp + 0x84], eax
mov eax, dword [ebx]
push eax
call fcn.00429210
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x90], eax
call fcn.00429210
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 0x456610
add ebx, 0x400
cmp byte [esp + 0x28], 0x42
je 0x456638
cmp byte [esp + 0x29], 0x4d
je 0x456638
mov esi, dword [esp + 0x464]
push esi
push str.LoadBMP:_only_Windows_style_BMP_files_supported___s__n
push 1
call dword [0x1173704]
add esp, 0xc
jmp 0x45663f
mov esi, dword [esp + 0x464]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x45665a
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 [0x1173704]
add esp, 0x14
mov eax, dword [esp + 0x48]
test eax, eax
je 0x456673
push esi
push str.LoadBMP:_only_uncompressed_BMP_files_supported___s__n
push 1
call dword [0x1173704]
add esp, 0xc
cmp di, 8
jae 0x45668a
push esi
push str.LoadBMP:_monochrome_and_4_bit_BMP_files_not_supported___s__n
push 1
call dword [0x1173704]
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
mov edi, eax
jge 0x456698
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 0x4566ae
mov dword [ecx], ebp
mov ecx, dword [esp + 0x470]
test ecx, ecx
je 0x4566bb
mov dword [ecx], edi
mov ecx, dword [0xa125fc]
lea esi, [eax*4]
cmp ecx, 0x100000
jge 0x4566f8
cmp esi, ecx
jg 0x456703
push 0x100000
mov dword [0xa125fc], 0x100000
call fcn.004c3af4
mov ecx, dword [0xa125fc]
add esp, 4
mov dword [0xa12608], eax
jmp 0x4566fd
mov eax, dword [0xa12608]
cmp esi, ecx
jle 0x456729
jmp 0x456708
mov eax, dword [0xa12608]
test eax, eax
je 0x456715
push eax
call fcn.004c2cc0
add esp, 4
push esi
mov dword [0xa125fc], esi
call fcn.004c3af4
add esp, 4
mov dword [0xa12608], eax
mov edx, dword [esp + 0x468]
mov ecx, eax
lea eax, [edi - 1]
test eax, eax
mov dword [edx], ecx
jl 0x456869
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 0x456850
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.0x456789.4
xor ecx, ecx
mov cl, byte [ebp + 0x456898]
jmp dword [ecx*4 + 0x456884]
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 0x456839
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 0x456839
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 0x456839
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 0x456839
mov ecx, dword [esp + 0x464]
push ecx
push edi
push str.LoadBMP:_illegal_pixel_size__d_in_file__s_n
push 1
call dword [0x1173704]
add esp, 0x10
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x456778
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 0x45675b
mov edx, dword [esp + 0x18]
push edx
call dword [0x1173744]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x450
ret