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

Disassembly:
sub esp, 0x8c
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
cmp esi, 0x12
jb 0x4645fd
push 0x2c
lea eax, [esp + 0x58]
push 0
push eax
call fcn.0065b340
movzx ecx, byte [ebx]
add esp, 0xc
cmp byte [ebx + 1], 1
lea ebp, [ecx + ebx + 0x12]
lea edx, [ebx + esi]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], edx
jne 0x4644e2
movzx eax, byte [ebx + 7]
add eax, 7
cdq
and edx, 7
lea edi, [edx + eax]
movzx eax, word [ebx + 5]
movzx ecx, ah
shl cx, 8
movzx edx, al
movzx eax, word [ebx + 3]
movzx ecx, cx
or ecx, edx
sar edi, 3
movzx edx, ah
mov dword [esp + 0x70], ecx
imul ecx, edi
shl dx, 8
movzx edx, dx
movzx eax, al
or edx, eax
mov dword [esp + 0x74], ebp
add ebp, ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], ebp
mov cl, byte [ebx + 2]
movzx eax, byte [ebx + 0x10]
movzx edx, cl
add eax, 7
mov dword [esp + 0x58], edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp cl, 8
mov dword [esp + 0x5c], eax
setae al
mov edi, ebx
mov byte [esp + 0x60], al
call fcn.00463e60
test eax, eax
je 0x46452f
movzx eax, byte [eax + 0x1ee]
sub eax, 3
je 0x46452f
dec eax
je 0x464528
xor edx, edx
jmp 0x464534
mov edx, 4
jmp 0x464534
mov edx, 3
mov eax, ebx
call fcn.00463f40
mov edi, eax
mov dword [esp + 0x2c], edi
test edi, edi
je 0x4645fd
movzx eax, word [ebx + 0xc]
movzx ecx, ah
movzx edx, al
movzx eax, word [ebx + 0xe]
shl cx, 8
movzx ebp, cx
movzx ecx, ah
or ebp, edx
movzx edx, al
mov eax, edi
sar eax, 0xb
and eax, 7
shl cx, 8
mov dword [esp + 0x20], eax
mov al, byte [ebx + 0x11]
movzx esi, cx
mov cl, al
shr al, 5
and al, 1
mov byte [esp + 0xe], al
lea eax, [esp + 0x10]
push eax
push 0
push edi
or esi, edx
push 0
shr cl, 4
push esi
and cl, 1
push ebp
mov dword [esp + 0x3c], esi
mov byte [esp + 0x27], cl
mov dword [esp + 0x48], 0x927448
mov dword [esp + 0x28], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x80]
push ecx
push edi
push 2
lea edx, [esp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], esi
call dword [sym.imp.gdiplus.dll_GdipBitmapLockBits]
test eax, eax
je 0x464609
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x8c
ret
xor ecx, ecx
mov dword [esp + 0x18], ecx
test esi, esi
jle 0x464689
lea eax, [esi - 1]
mov dword [esp + 0x1c], eax
cmp byte [esp + 0xe], 0
je 0x464623
mov eax, ecx
imul eax, dword [esp + 0x88]
add eax, dword [esp + 0x90]
xor edi, edi
mov dword [esp + 0x28], eax
test ebp, ebp
jle 0x464673
lea ecx, [ebp - 1]
mov dword [esp + 0x14], ecx
cmp byte [esp + 0xf], 0
mov edx, dword [esp + 0x14]
jne 0x464650
mov edx, edi
imul edx, dword [esp + 0x20]
add edx, dword [esp + 0x28]
lea esi, [esp + 0x50]
call fcn.00464360
dec dword [esp + 0x14]
inc edi
cmp edi, ebp
jl 0x464643
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc ecx
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
cmp ecx, esi
jl 0x46461a
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x80]
push edx
push eax
call dword [sym.imp.gdiplus.dll_GdipBitmapUnlockBits]
test eax, eax
je 0x4646a4
mov dword [esp + 0x38], eax
cmp byte [esp + 0x7c], 0
je 0x4646c2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x8c
ret
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0xa0]
mov ecx, ebx
call fcn.004640c0
add esp, 4
push esi
push ebp
push 0
push 0
mov edx, edi
lea eax, [esp + 0x40]
call fcn.0045ab70
mov esi, eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x8c
ret