Function at 0x469e10
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 [0x120704c]
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x46a1ca
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.0042c880
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x34], eax
call fcn.0042c880
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x3c], eax
call fcn.0042c880
add ebx, 4
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
push eax
call fcn.0042c880
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x4c], eax
call fcn.0042c880
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x54], eax
call fcn.0042c880
add ebx, 4
mov dword [esp + 0x58], eax
mov ax, word [ebx]
push eax
call fcn.0042c860
mov cx, word [ebx + 2]
add ebx, 2
push ecx
mov word [esp + 0x64], ax
call fcn.0042c860
mov edx, dword [ebx + 2]
add ebx, 2
push edx
mov word [esp + 0x6a], ax
call fcn.0042c880
add ebx, 4
mov dword [esp + 0x6c], eax
mov eax, dword [ebx]
push eax
call fcn.0042c880
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x78], eax
call fcn.0042c880
mov edx, dword [ebx + 4]
add ebx, 4
push edx
mov dword [esp + 0x80], eax
call fcn.0042c880
add ebx, 4
mov dword [esp + 0x84], eax
mov eax, dword [ebx]
push eax
call fcn.0042c880
mov ecx, dword [ebx + 4]
add ebx, 4
push ecx
mov dword [esp + 0x90], eax
call fcn.0042c880
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 0x469f60
add ebx, 0x400
cmp byte [esp + 0x28], 0x42
je 0x469f88
cmp byte [esp + 0x29], 0x4d
je 0x469f88
mov esi, dword [esp + 0x464]
push esi
push str.LoadBMP:_only_Windows_style_BMP_files_supported___s__n
push 1
call dword [0x1207004]
add esp, 0xc
jmp 0x469f8f
mov esi, dword [esp + 0x464]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x469faa
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 [0x1207004]
add esp, 0x14
mov eax, dword [esp + 0x48]
test eax, eax
je 0x469fc3
push esi
push str.LoadBMP:_only_uncompressed_BMP_files_supported___s__n
push 1
call dword [0x1207004]
add esp, 0xc
cmp di, 8
jae 0x469fda
push esi
push str.LoadBMP:_monochrome_and_4_bit_BMP_files_not_supported___s__n
push 1
call dword [0x1207004]
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
mov edi, eax
jge 0x469fe8
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 0x469ffe
mov dword [ecx], ebp
mov ecx, dword [esp + 0x470]
test ecx, ecx
je 0x46a00b
mov dword [ecx], edi
mov ecx, dword [0xa2fddc]
lea esi, [eax*4]
cmp ecx, 0x100000
jge 0x46a048
cmp esi, ecx
jg 0x46a053
push 0x100000
mov dword [0xa2fddc], 0x100000
call fcn.004cc500
mov ecx, dword [0xa2fddc]
add esp, 4
mov dword [0xa2fde8], eax
jmp 0x46a04d
mov eax, dword [0xa2fde8]
cmp esi, ecx
jle 0x46a079
jmp 0x46a058
mov eax, dword [0xa2fde8]
test eax, eax
je 0x46a065
push eax
call fcn.004cba20
add esp, 4
push esi
mov dword [0xa2fddc], esi
call fcn.004cc500
add esp, 4
mov dword [0xa2fde8], eax
mov edx, dword [esp + 0x468]
mov ecx, eax
lea eax, [edi - 1]
test eax, eax
mov dword [edx], ecx
jl 0x46a1b9
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 0x46a1a0
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.0x46a0d9.4
xor ecx, ecx
mov cl, byte [ebp + 0x46a1e8]
jmp dword [ecx*4 + 0x46a1d4]
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 0x46a189
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 0x46a189
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 0x46a189
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 0x46a189
mov ecx, dword [esp + 0x464]
push ecx
push edi
push str.LoadBMP:_illegal_pixel_size__d_in_file__s_n
push 1
call dword [0x1207004]
add esp, 0x10
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x46a0c8
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 0x46a0ab
mov edx, dword [esp + 0x18]
push edx
call dword [0x1207050]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x450
ret