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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487d98
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, esi
and eax, 0x80000007
jns 0x42148d
dec eax
or eax, 0xfffffff8
inc eax
je 0x421494
sub esi, eax
add esi, 8
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ebx
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x80], ebx
cmp edi, ebx
je 0x421579
cmp esi, ebx
jle 0x421579
push 0x2c
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.00474b70
add esp, 0xc
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
mov ecx, 1
mov word [esp + 0x60], cx
push ebx
lea ecx, [esp + 0x58]
push ecx
mov edx, 0x18
push ebx
mov dword [esp + 0x60], 0x28
mov word [esp + 0x6e], dx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x2c], eax
cmp eax, ebx
jne 0x421538
mov dword [esp + 0x30], ebx
jmp 0x421579
lea eax, [esi + esi*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
cmp edi, ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
jle 0x421571
lea edx, [edi - 1]
imul edx, eax
add dword [esp + 0x30], edx
neg eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
jmp 0x421579
mov eax, edi
neg eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push edi
push eax
lea eax, [esp + 0x30]
push eax
call edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, esi
mov esi, dword [ebp + 0x10]
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
mov ecx, edi
imul ecx, esi
push ecx
call fcn.0046a020
mov ecx, dword [esp + 0x34]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
jle 0x421655
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
nop
cmp edi, ebx
mov esi, eax
jle 0x421635
mov eax, edi
xor dl, dl
cmp byte [ecx], bl
je 0x4215e0
mov dl, 1
add ecx, 3
cmp byte [ecx], bl
je 0x4215ea
or dl, 2
add ecx, 3
cmp byte [ecx], bl
je 0x4215f4
or dl, 4
add ecx, 3
cmp byte [ecx], bl
je 0x4215fe
or dl, 8
add ecx, 3
cmp byte [ecx], bl
je 0x421608
or dl, 0x10
add ecx, 3
cmp byte [ecx], bl
je 0x421612
or dl, 0x20
add ecx, 3
cmp byte [ecx], bl
je 0x42161c
or dl, 0x40
add ecx, 3
cmp byte [ecx], bl
je 0x421626
or dl, 0x80
mov byte [esi], dl
add ecx, 3
inc esi
sub eax, 1
jne 0x4215d8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, dword [esp + 0x20]
add eax, edi
sub dword [esp + 0x1c], 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jne 0x4215d0
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x24], edi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], esi
cmp dword [esp + 0x2c], ebx
je 0x4216af
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x421684
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc