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

Disassembly:
push 0xffffffffffffffff
push 0x46f5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push edi
mov edi, ecx
mov dword [esp + 0x30], edi
mov eax, dword [edi + 4]
test eax, eax
jne 0x4373ca
xor al, al
pop edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
lea ecx, [esp + 0x44]
push ecx
push 0x18
push eax
call dword [0x49128c]
test eax, eax
jne 0x4373f0
xor al, al
pop edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov edx, dword [esp + 0x48]
cmp edx, 3
jl 0x43780d
mov ecx, dword [esp + 0x4c]
cmp ecx, 3
jl 0x43780d
mov eax, dword [edi + 0x18]
push ebx
imul eax, edx
mov edx, eax
push ebp
and edx, 1
push esi
add eax, edx
mov dword [esp + 0x5c], eax
imul eax, ecx
mov esi, eax
push esi
mov dword [esp + 0x3c], esi
call fcn.0045fc3f
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
setne cl
mov byte [esp + 0x40], cl
mov edx, dword [edi + 4]
push eax
push esi
push edx
mov dword [esp + 0x7c], 0
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push esi
call fcn.0045fc3f
mov ebp, eax
add esp, 4
mov ecx, esi
mov esi, dword [esp + 0x44]
test ebp, ebp
mov eax, ecx
mov edi, ebp
setne byte [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor bl, bl
and ecx, 3
mov dword [esp + 0x24], ebp
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x62]
and eax, 0xffff
cmp eax, 0x18
je 0x437675
cmp eax, 0x20
jne 0x43763c
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
lea ebx, [ecx - 1]
mov ecx, dword [esp + 0x78]
lea edi, [edx - 1]
mov dword [esp + 0x10], ebx
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x34], edi
mov eax, esi
mov dword [esp + 0x30], esi
cdq
sub eax, edx
sar eax, 1
test esi, esi
mov dword [esp + 0x2c], eax
je 0x437806
mov eax, dword [esp + 0x44]
test eax, eax
je 0x437806
test ebp, ebp
je 0x437806
cmp ebx, 1
jl 0x437806
cmp edi, 1
jl 0x437806
xor ebx, ebx
add eax, 3
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x28]
lea esi, [eax + ebp + 3]
add edx, eax
cmp edi, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], esi
jbe 0x437618
dec edi
mov dword [esp + 0x1c], edi
mov esi, edx
lea edi, [edx + ebx]
sub esi, eax
add esi, ebx
cmp dword [esp + 0x10], 1
lea ebp, [edi + eax]
jbe 0x4375f1
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
add ebx, eax
dec edx
mov dword [esp + 0x14], edx
xor eax, eax
xor edx, edx
mov al, byte [ebp + 3]
mov dl, byte [edi + 3]
imul eax, dword [ecx + 0x20]
imul edx, dword [ecx + 0x14]
add eax, edx
xor edx, edx
mov dl, byte [esi - 3]
imul edx, dword [ecx]
add eax, edx
xor edx, edx
mov dl, byte [esi + 3]
imul edx, dword [ecx + 8]
add eax, edx
xor edx, edx
mov dl, byte [ebp - 3]
imul edx, dword [ecx + 0x18]
add eax, edx
xor edx, edx
mov dl, byte [edi - 3]
imul edx, dword [ecx + 0xc]
add eax, edx
xor edx, edx
mov dl, byte [ebp]
imul edx, dword [ecx + 0x1c]
add eax, edx
xor edx, edx
mov dl, byte [edi]
imul edx, dword [ecx + 0x10]
add eax, edx
xor edx, edx
mov dl, byte [esi]
imul edx, dword [ecx + 4]
add eax, edx
mov edx, dword [esp + 0x2c]
add eax, edx
cdq
idiv dword [esp + 0x30]
test eax, eax
jge 0x4375bc
xor eax, eax
jmp 0x4375c8
cmp eax, 0xff
jle 0x4375c8
mov eax, 0xff
mov byte [ebx], al
mov eax, dword [esp + 0x14]
add ebx, 4
add esi, 4
add edi, 4
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x43754b
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x1c]
add edx, eax
add edi, eax
dec esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x1c], esi
jne 0x437525
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
inc ebx
cmp ebx, 3
mov dword [esp + 0x20], ebx
jl 0x437505
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ebp
push eax
mov edx, dword [ecx + 4]
mov bl, 1
push edx
call dword [sym.imp.GDI32.dll_SetBitmapBits]
mov al, byte [esp + 0x48]
test al, al
je 0x43764d
push ebp
call fcn.0045fc68
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x70], 0xffffffff
call fcn.0040bd99
pop esi
mov al, bl
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 4
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
lea edi, [ecx - 1]
mov ecx, dword [esp + 0x78]
lea ebx, [eax - 1]
mov dword [esp + 0x28], edi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x20], ebx
mov eax, esi
mov dword [esp + 0x2c], esi
cdq
sub eax, edx
sar eax, 1
test esi, esi
mov dword [esp + 0x30], eax
je 0x437806
mov eax, dword [esp + 0x44]
test eax, eax
je 0x437806
test ebp, ebp
je 0x437806
cmp ebx, 1
jl 0x437806
cmp edi, 1
jl 0x437806
xor ebx, ebx
add eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x34]
lea esi, [eax + ebp + 3]
add edx, eax
cmp edi, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], esi
jbe 0x4377f3
dec edi
mov dword [esp + 0x14], edi
mov esi, edx
lea edi, [edx + ebx]
sub esi, eax
add esi, ebx
cmp dword [esp + 0x20], 1
lea ebp, [edi + eax]
jbe 0x4377cc
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
add ebx, eax
dec edx
mov dword [esp + 0x1c], edx
xor eax, eax
xor edx, edx
mov al, byte [esi - 3]
mov dl, byte [ebp - 3]
imul eax, dword [ecx]
imul edx, dword [ecx + 0x18]
add eax, edx
xor edx, edx
mov dl, byte [edi - 3]
imul edx, dword [ecx + 0xc]
add eax, edx
xor edx, edx
mov dl, byte [esi + 3]
imul edx, dword [ecx + 8]
add eax, edx
xor edx, edx
mov dl, byte [esi]
imul edx, dword [ecx + 4]
add eax, edx
xor edx, edx
mov dl, byte [ebp]
imul edx, dword [ecx + 0x1c]
add eax, edx
xor edx, edx
mov dl, byte [edi]
imul edx, dword [ecx + 0x10]
add eax, edx
xor edx, edx
mov dl, byte [edi + 3]
imul edx, dword [ecx + 0x14]
add eax, edx
xor edx, edx
mov dl, byte [ebp + 3]
imul edx, dword [ecx + 0x20]
add eax, edx
mov edx, dword [esp + 0x30]
add eax, edx
cdq
idiv dword [esp + 0x2c]
test eax, eax
jge 0x437797
xor eax, eax
jmp 0x4377a3
cmp eax, 0xff
jle 0x4377a3
mov eax, 0xff
mov byte [ebx], al
mov eax, dword [esp + 0x1c]
add ebx, 3
add esi, 3
add edi, 3
add ebp, 3
dec eax
mov dword [esp + 0x1c], eax
jne 0x437726
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x14]
add edx, eax
add edi, eax
dec esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x14], esi
jne 0x437700
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
inc ebx
cmp ebx, 3
mov dword [esp + 0x10], ebx
jl 0x4376e0
jmp 0x437626
xor bl, bl
jmp 0x43763c
mov ecx, dword [esp + 0x5c]
mov al, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x64
ret 4