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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f4b0
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [esp + 0x88]
xor ebx, ebx
mov esi, ecx
cmp dword [edi + 4], ebx
je 0x435ce8
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x435a20
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 4], ebx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x38]
push eax
push 0x18
push ecx
call dword [0x49128c]
cmp eax, ebx
je 0x435ce8
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 8], eax
push ebp
mov ebp, dword [esp + 0x48]
lea eax, [eax + eax*2 + 3]
shr eax, 2
imul ebp, ecx
shl eax, 2
mov dword [esi + 0x14], eax
imul eax, ecx
push ebp
mov dword [esi + 0x18], 3
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], ebx
call fcn.0045fc3f
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
setne byte [esp + 0x24]
mov edx, dword [edi + 4]
push eax
push ebp
push edx
mov dword [esp + 0x90], ebx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov dx, word [esi + 0x18]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x5c], ecx
mov ebx, 1
shl dx, 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0x28
mov word [esp + 0x60], bx
mov word [esp + 0x62], dx
mov dword [esp + 0x68], eax
call fcn.00461b06
mov byte [esp + 0x84], bl
xor ebx, ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.00461bbd
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
push ebx
lea ecx, [esp + 0x1c]
and eax, edx
push ebx
push ecx
lea edx, [esp + 0x60]
push ebx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x435cc1
mov edx, dword [esp + 0x18]
cmp edx, ebx
je 0x435cc1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov di, word [esp + 0x4e]
sub eax, ecx
add eax, ebp
cmp di, 0x20
jne 0x435bb7
mov ebp, edx
mov edx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], ecx
cmp eax, ebx
mov dword [esp + 0x8c], ebx
jbe 0x435cb5
mov ebx, dword [esi + 8]
xor edi, edi
test ebx, ebx
mov ecx, edx
mov eax, ebp
jbe 0x435b91
mov bl, byte [ecx]
mov byte [eax], bl
mov bl, byte [ecx + 1]
inc eax
inc ecx
mov byte [eax], bl
mov bl, byte [ecx + 1]
inc eax
inc ecx
add ecx, 2
mov byte [eax], bl
mov ebx, dword [esi + 8]
inc eax
inc edi
cmp edi, ebx
jb 0x435b73
mov eax, dword [esp + 0x10]
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
sub edx, eax
mov eax, dword [esp + 0x8c]
add ebp, ebx
inc eax
cmp eax, ecx
mov dword [esp + 0x8c], eax
jb 0x435b66
jmp 0x435cb5
cmp di, 0x18
jne 0x435c26
mov ebp, edx
mov edx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], ecx
cmp eax, ebx
mov dword [esp + 0x8c], ebx
jbe 0x435cb5
mov ebx, dword [esi + 8]
xor edi, edi
test ebx, ebx
mov ecx, edx
mov eax, ebp
jbe 0x435c00
mov bl, byte [ecx]
mov byte [eax], bl
mov bl, byte [ecx + 1]
inc eax
inc ecx
mov byte [eax], bl
mov bl, byte [ecx + 1]
inc eax
inc ecx
mov byte [eax], bl
mov ebx, dword [esi + 8]
inc eax
inc ecx
inc edi
cmp edi, ebx
jb 0x435be4
mov eax, dword [esp + 0x10]
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
sub edx, eax
mov eax, dword [esp + 0x8c]
add ebp, ebx
inc eax
cmp eax, ecx
mov dword [esp + 0x8c], eax
jb 0x435bd7
jmp 0x435cb5
cmp di, 0x10
jne 0x435ca5
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x10], ebx
jbe 0x435cb5
mov ecx, dword [esi + 8]
xor ebp, ebp
mov edi, eax
mov eax, edx
test ecx, ecx
jbe 0x435c7a
mov cx, word [edi]
add edi, 2
mov bl, cl
shl bl, 3
mov byte [eax], bl
mov ebx, ecx
shr ebx, 3
inc eax
and bl, 0xfc
mov byte [eax], bl
xor ebx, ebx
mov bl, ch
inc eax
and bl, 0xf8
mov byte [eax], bl
mov ecx, dword [esi + 8]
inc eax
inc ebp
cmp ebp, ecx
jb 0x435c4f
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x10]
add edx, ebp
inc ecx
cmp ecx, edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x10], ecx
jb 0x435c42
jmp 0x435cb5
cmp di, 8
jne 0x435cb5
push edx
push ecx
push eax
mov ecx, esi
call fcn.004358c0
mov eax, dword [esp + 0x20]
mov ecx, esi
push eax
call fcn.00462574
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 0
call fcn.00461c25
mov al, byte [esp + 0x24]
pop ebp
test al, al
je 0x435ce8
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0045fc68
add esp, 4
mov ecx, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 4