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

Disassembly:
push 0xffffffffffffffff
push 0x43b238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebp
push esi
push edi
mov edi, ecx
push 0x116
call fcn.0040bb90
push 0x116
mov ecx, edi
call fcn.0040bc60
mov al, byte [edi + 0x4422]
mov esi, dword [esp + 0x9c]
mov cx, word [edi + 0x441c]
mov dl, byte [edi + 0x4423]
mov byte [esp + 0x54], al
mov ax, word [edi + 0x441e]
mov word [esp + 0x50], ax
mov eax, dword [esp + 0xa4]
mov word [esp + 0x58], cx
mov cl, byte [edi + 0x4424]
mov byte [esp + 0x4c], dl
mov dx, word [edi + 0x4420]
lea ebp, [esi + eax]
mov byte [esp + 0x44], cl
cmp esi, ebp
mov word [esp + 0x48], dx
mov dword [esp + 0x14], esi
mov dword [esp + 0x70], ebp
jge 0x413343
mov ecx, dword [esp + 0xa0]
push ebx
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
lea edx, [ebx + ecx]
mov dword [esp + 0x64], edx
lea eax, [edi + 0x1e4]
lea ecx, [esp + 0x78]
push eax
call fcn.00408cb0
mov eax, dword [edi + 0x3a1c]
mov ecx, dword [edi + 0x3a20]
push eax
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x9c], 0
call fcn.00408d20
mov edx, dword [edi + 0x3a24]
mov eax, dword [edi + 0x3a20]
push edx
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 1
call fcn.00408d60
mov eax, dword [esp + 0x64]
mov byte [esp + 0x94], 2
cmp ebx, eax
mov dword [esp + 0x10], ebx
jge 0x4132ef
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], eax
jmp 0x413130
mov eax, dword [esp + 0x3c]
mov ebp, 0x10
cmp eax, ebp
mov ebx, ebp
jge 0x41313d
mov ebx, eax
mov eax, dword [esp + 0x40]
cmp eax, 0x10
jge 0x413148
mov ebp, eax
lea ecx, [esp + 0x60]
push 1
push ecx
mov ecx, edi
call fcn.0040b880
mov eax, dword [esp + 0x60]
test al, 1
je 0x41335d
mov edx, ebp
mov eax, dword [edi + 0x1c4]
imul edx, ebx
push edx
push eax
mov ecx, edi
call fcn.0040b880
mov ecx, dword [edi + 0x1c4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], esi
lea ecx, [eax + ebp]
cmp eax, ecx
mov dword [esp + 0x38], ecx
jge 0x4132be
mov ebp, dword [esp + 0x10]
lea eax, [ebx + ebp]
mov dword [esp + 0x34], eax
cmp ebp, eax
jge 0x4132b1
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
and edx, 0xff
and ecx, 0xff
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x58]
and edx, 0xff
and eax, 0xffff
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
and ebx, 0xffff
and edx, 0xffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
jmp 0x413203
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dl, byte [edx]
mov byte [esp + 0x68], dl
mov esi, dword [esp + 0x68]
and esi, 0xff
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x28]
and edx, eax
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv dword [esp + 0x1c]
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x2c]
shr esi, cl
mov ecx, dword [esp + 0x30]
and edx, ebx
and esi, ecx
and eax, 0xff
or ah, 2
shl eax, 8
mov dword [esp + 0x6c], eax
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv ebx
mov edx, dword [esp + 0x6c]
and eax, 0xff
or edx, eax
mov eax, esi
shl eax, 8
shl edx, 8
sub eax, esi
mov dword [esp + 0x6c], edx
cdq
idiv ecx
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x44]
mov edx, dword [edi + 0x3a20]
and eax, 0xff
or ecx, eax
push ecx
push esi
push ebp
push edx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x20]
inc eax
inc ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
cmp ebp, eax
jl 0x4131fb
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
inc esi
cmp esi, ecx
mov dword [esp + 0x44], esi
jl 0x4131a2
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x64]
add eax, 0x10
sub edx, 0x10
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], edx
jl 0x41312c
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x74]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x94], 1
call fcn.00408d90
lea ecx, [esp + 0x84]
mov byte [esp + 0x94], 0
call fcn.00408d40
lea ecx, [esp + 0x78]
mov dword [esp + 0x94], 0xffffffff
call fcn.00408cd0
mov ecx, dword [esp + 0x40]
add esi, 0x10
sub ecx, 0x10
cmp esi, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x40], ecx
jl 0x4130b0
pop ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x88
ret 0x10
test al, 0x20
je 0x41351c
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, edi
call fcn.0040b880
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cl, ah
mov edx, dword [edi + 0x1c4]
mov ch, al
mov eax, ecx
mov ecx, edi
mov dword [esp + 0x14], eax
and eax, 0xffff
push eax
push edx
call fcn.0040b880
mov ecx, ebp
mov edx, dword [esp + 0x14]
imul ecx, ebx
lea eax, [edi + 0x2b8]
add ecx, 2
push eax
mov eax, dword [edi + 0x274]
and edx, 0xffff
push ecx
mov ecx, dword [edi + 0x1c4]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00412ee0
test al, al
je 0x4132c2
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x274]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], esi
lea ecx, [eax + ebp]
cmp eax, ecx
mov dword [esp + 0x38], ecx
jge 0x4132be
mov ebp, dword [esp + 0x10]
lea eax, [ebx + ebp]
mov dword [esp + 0x34], eax
cmp ebp, eax
jge 0x41350a
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
and edx, 0xff
and ecx, 0xff
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x58]
and edx, 0xff
and eax, 0xffff
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
and ebx, 0xffff
and edx, 0xffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
jmp 0x41345c
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dl, byte [edx]
mov byte [esp + 0x70], dl
mov esi, dword [esp + 0x70]
and esi, 0xff
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x28]
and edx, eax
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv dword [esp + 0x1c]
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x2c]
shr esi, cl
mov ecx, dword [esp + 0x30]
and edx, ebx
and esi, ecx
and eax, 0xff
or ah, 2
shl eax, 8
mov dword [esp + 0x6c], eax
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv ebx
mov edx, dword [esp + 0x6c]
and eax, 0xff
or edx, eax
mov eax, esi
shl eax, 8
shl edx, 8
sub eax, esi
mov dword [esp + 0x6c], edx
cdq
idiv ecx
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x44]
mov edx, dword [edi + 0x3a20]
and eax, 0xff
or ecx, eax
push ecx
push esi
push ebp
push edx
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x20]
inc eax
inc ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
cmp ebp, eax
jl 0x413454
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
inc esi
cmp esi, ecx
mov dword [esp + 0x44], esi
jl 0x4133fb
jmp 0x4132be
test al, 0x40
je 0x4135b3
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, edi
call fcn.0040b880
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cl, ah
mov edx, dword [edi + 0x1c4]
mov ch, al
mov eax, ecx
mov ecx, edi
mov dword [esp + 0x14], eax
and eax, 0xffff
push eax
push edx
call fcn.0040b880
mov ecx, ebp
mov edx, dword [esp + 0x14]
imul ecx, ebx
lea eax, [edi + 0x2f0]
add ecx, 0x16
push eax
mov eax, dword [edi + 0x274]
and edx, 0xffff
push ecx
mov ecx, dword [edi + 0x1c4]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00412ee0
test al, al
je 0x4132c2
mov eax, dword [esp + 0x60]
mov edx, dword [edi + 0x274]
mov ecx, dword [esp + 0x10]
and eax, 0xff
push edx
push eax
push ebp
push ebx
push esi
push ecx
mov ecx, edi
call fcn.00413980
jmp 0x4132c2
mov edx, dword [esp + 0x10]
and eax, 0xff
push eax
push ebp
push ebx
push esi
push edx
mov ecx, edi
call fcn.004135d0
jmp 0x4132c2