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

Disassembly:
push 0xffffffffffffffff
push 0x43b948
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.0040bed0
push 0x116
mov ecx, edi
call fcn.0040bfa0
mov al, byte [edi + 0x473a]
mov esi, dword [esp + 0x9c]
mov cx, word [edi + 0x4734]
mov dl, byte [edi + 0x473b]
mov byte [esp + 0x54], al
mov ax, word [edi + 0x4736]
mov word [esp + 0x50], ax
mov eax, dword [esp + 0xa4]
mov word [esp + 0x58], cx
mov cl, byte [edi + 0x473c]
mov byte [esp + 0x4c], dl
mov dx, word [edi + 0x4738]
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 0x4136b3
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 + 0x4fc]
lea ecx, [esp + 0x78]
push eax
call fcn.00408db0
mov eax, dword [edi + 0x3d34]
mov ecx, dword [edi + 0x3d38]
push eax
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x9c], 0
call fcn.00408e20
mov edx, dword [edi + 0x3d3c]
mov eax, dword [edi + 0x3d38]
push edx
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x9c], 1
call fcn.00408e60
mov eax, dword [esp + 0x64]
mov byte [esp + 0x94], 2
cmp ebx, eax
mov dword [esp + 0x10], ebx
jge 0x41365f
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x3c], eax
jmp 0x4134a0
mov eax, dword [esp + 0x3c]
mov ebp, 0x10
cmp eax, ebp
mov ebx, ebp
jge 0x4134ad
mov ebx, eax
mov eax, dword [esp + 0x40]
cmp eax, 0x10
jge 0x4134b8
mov ebp, eax
lea ecx, [esp + 0x60]
push 1
push ecx
mov ecx, edi
call fcn.0040bbc0
mov eax, dword [esp + 0x60]
test al, 1
je 0x4136cd
mov edx, ebp
mov eax, dword [edi + 0x4dc]
imul edx, ebx
push edx
push eax
mov ecx, edi
call fcn.0040bbc0
mov ecx, dword [edi + 0x4dc]
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 0x41362e
mov ebp, dword [esp + 0x10]
lea eax, [ebx + ebp]
mov dword [esp + 0x34], eax
cmp ebp, eax
jge 0x413621
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 0x413573
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 + 0x3d38]
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 0x41356b
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
inc esi
cmp esi, ecx
mov dword [esp + 0x44], esi
jl 0x413512
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 0x41349c
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x74]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x94], 1
call fcn.00408e90
lea ecx, [esp + 0x84]
mov byte [esp + 0x94], 0
call fcn.00408e40
lea ecx, [esp + 0x78]
mov dword [esp + 0x94], 0xffffffff
call fcn.00408dd0
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 0x413420
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 0x41388c
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, edi
call fcn.0040bbc0
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cl, ah
mov edx, dword [edi + 0x4dc]
mov ch, al
mov eax, ecx
mov ecx, edi
mov dword [esp + 0x14], eax
and eax, 0xffff
push eax
push edx
call fcn.0040bbc0
mov ecx, ebp
mov edx, dword [esp + 0x14]
imul ecx, ebx
lea eax, [edi + 0x5d0]
add ecx, 2
push eax
mov eax, dword [edi + 0x58c]
and edx, 0xffff
push ecx
mov ecx, dword [edi + 0x4dc]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00413250
test al, al
je 0x413632
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 0x58c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], esi
lea ecx, [eax + ebp]
cmp eax, ecx
mov dword [esp + 0x38], ecx
jge 0x41362e
mov ebp, dword [esp + 0x10]
lea eax, [ebx + ebp]
mov dword [esp + 0x34], eax
cmp ebp, eax
jge 0x41387a
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 0x4137cc
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 + 0x3d38]
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 0x4137c4
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
inc esi
cmp esi, ecx
mov dword [esp + 0x44], esi
jl 0x41376b
jmp 0x41362e
test al, 0x40
je 0x413923
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, edi
call fcn.0040bbc0
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cl, ah
mov edx, dword [edi + 0x4dc]
mov ch, al
mov eax, ecx
mov ecx, edi
mov dword [esp + 0x14], eax
and eax, 0xffff
push eax
push edx
call fcn.0040bbc0
mov ecx, ebp
mov edx, dword [esp + 0x14]
imul ecx, ebx
lea eax, [edi + 0x608]
add ecx, 0x16
push eax
mov eax, dword [edi + 0x58c]
and edx, 0xffff
push ecx
mov ecx, dword [edi + 0x4dc]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00413250
test al, al
je 0x413632
mov eax, dword [esp + 0x60]
mov edx, dword [edi + 0x58c]
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.00413cf0
jmp 0x413632
mov edx, dword [esp + 0x10]
and eax, 0xff
push eax
push ebp
push ebx
push esi
push edx
mov ecx, edi
call fcn.00413940
jmp 0x413632