Function at 0x40efe0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x43b0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
mov ebx, ecx
push 0x1000
call fcn.0040bb90
mov al, byte [ebx + 0x4422]
mov cx, word [ebx + 0x441c]
mov dl, byte [ebx + 0x4423]
mov byte [esp + 0x3c], al
mov ax, word [ebx + 0x441e]
mov word [esp + 0x34], cx
mov cl, byte [ebx + 0x4424]
mov word [esp + 0x40], ax
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x38], cl
mov ecx, dword [esp + 0xa8]
mov byte [esp + 0x28], dl
mov dx, word [ebx + 0x4420]
mov dword [esp + 0x20], eax
lea ebp, [eax + ecx]
mov word [esp + 0x30], dx
cmp eax, ebp
mov dword [esp + 0x6c], ebp
jge 0x40f06d
mov eax, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x58], ecx
lea edx, [esi + eax]
mov dword [esp + 0x68], edx
lea eax, [ebx + 0x1e4]
lea ecx, [esp + 0x6c]
push eax
call fcn.00408cb0
mov eax, dword [ebx + 0x3a1c]
mov ecx, dword [ebx + 0x3a20]
push eax
push ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0xa4], 0
call fcn.00408d20
mov edx, dword [ebx + 0x3a24]
mov eax, dword [ebx + 0x3a20]
push edx
push eax
lea ecx, [esp + 0x8c]
call fcn.00408d60
mov eax, dword [esp + 0x68]
mov byte [esp + 0x9c], 2
cmp esi, eax
mov dword [esp + 0x18], esi
jge 0x40f021
mov eax, dword [esp + 0xac]
mov dword [esp + 0x60], eax
jmp 0x40eaf3
mov eax, dword [esp + 0x60]
mov ebp, 0x10
mov esi, ebp
cmp eax, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], esi
jge 0x40eb0c
mov dword [esp + 0x20], eax
mov esi, eax
mov eax, dword [esp + 0x58]
cmp eax, 0x10
jge 0x40eb1b
mov dword [esp + 0x14], eax
mov ebp, eax
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, ebx
call fcn.0040b880
mov al, byte [esp + 0x13]
test al, 1
je 0x40eca4
mov edx, ebp
mov eax, dword [ebx + 0x1c4]
imul edx, esi
shl edx, 1
push edx
push eax
mov ecx, ebx
call fcn.0040b880
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x1c4]
add ebp, eax
mov dword [esp + 0x20], ecx
cmp eax, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], ebp
jge 0x40eff4
mov ecx, dword [esp + 0x18]
lea eax, [esi + ecx]
mov dword [esp + 0x78], eax
jmp 0x40eb7c
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jge 0x40ec8e
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x48]
and edx, 0xff
and ecx, 0xff
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x44]
and edx, 0xff
and eax, 0xffff
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x3c]
and ebp, 0xffff
and edx, 0xffff
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edx
jmp 0x40ebe1
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov si, word [edx]
and esi, 0xffff
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x4c]
and edx, eax
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv dword [esp + 0x34]
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x64]
shr esi, cl
mov ecx, dword [esp + 0x1c]
and edx, ebp
and esi, ecx
and eax, 0xff
or ah, 2
shl eax, 8
mov dword [esp + 0x5c], eax
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv ebp
mov edx, dword [esp + 0x5c]
and eax, 0xff
or edx, eax
mov eax, esi
shl eax, 8
shl edx, 8
sub eax, esi
mov dword [esp + 0x5c], edx
cdq
idiv ecx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
and eax, 0xff
or ecx, eax
mov eax, dword [ebx + 0x3a20]
push ecx
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_SetPixelV]
mov eax, dword [esp + 0x20]
add eax, 2
inc esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
cmp esi, eax
mov dword [esp + 0x2c], esi
jl 0x40ebd9
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, ebp
mov dword [esp + 0x14], ecx
jl 0x40eb78
jmp 0x40eff4
test al, 2
je 0x40ed59
lea ecx, [esp + 0x70]
push 2
push ecx
mov ecx, ebx
call fcn.0040b880
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
mov cl, byte [esp + 0x40]
mov esi, dword [esp + 0x38]
and ebp, 0xffff
and eax, 0xffff
mov edx, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
and esi, 0xffff
shr edx, cl
and eax, 0xffff
mov cl, byte [esp + 0x30]
mov dword [esp + 0x1c], eax
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv esi
mov edx, ebp
shr edx, cl
mov ecx, dword [esp + 0x2c]
and edx, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
and esi, 0xff
cdq
idiv ecx
mov cl, byte [esp + 0x44]
or esi, 0x200
shr ebp, cl
mov ecx, dword [esp + 0x1c]
shl esi, 8
and ebp, ecx
and eax, 0xff
or esi, eax
mov eax, ebp
shl eax, 8
sub eax, ebp
mov ebp, dword [esp + 0x14]
cdq
idiv ecx
shl esi, 8
and eax, 0xff
or esi, eax
mov dword [esp + 0x80], esi
jmp 0x40ed60
mov esi, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push esi
push ebp
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0040c900
test byte [esp + 0x13], 4
je 0x40ee1c
lea edx, [esp + 0x7c]
push 2
push edx
mov ecx, ebx
call fcn.0040b880
mov ebp, dword [esp + 0x7c]
mov cl, byte [esp + 0x40]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
and ebp, 0xffff
and edi, 0xffff
mov edx, ebp
and eax, 0xffff
shr edx, cl
mov dword [esp + 0x1c], eax
mov cl, byte [esp + 0x30]
mov esi, dword [esp + 0x48]
and esi, 0xffff
and edx, edi
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv edi
mov edx, ebp
shr edx, cl
mov cl, byte [esp + 0x44]
shr ebp, cl
mov ecx, dword [esp + 0x1c]
and edx, esi
and ebp, ecx
mov edi, eax
mov eax, edx
shl eax, 8
sub eax, edx
and edi, 0xff
cdq
idiv esi
or edi, 0x200
shl edi, 8
and eax, 0xff
or edi, eax
mov eax, ebp
shl eax, 8
sub eax, ebp
cdq
idiv ecx
shl edi, 8
and eax, 0xff
or edi, eax
test byte [esp + 0x13], 8
je 0x40eff4
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, ebx
call fcn.0040b880
mov al, byte [esp + 0x13]
mov ebp, dword [ebx + 0x1c4]
test al, 0x10
je 0x40ef89
mov ecx, dword [esp + 0x24]
and ecx, 0xff
shl ecx, 2
push ecx
push ebp
mov ecx, ebx
call fcn.0040b880
mov al, byte [esp + 0x24]
mov dword [esp + 0x14], 0
test al, al
jbe 0x40eff4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
and eax, 0xff
mov edi, dword [esp + 0x38]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
and eax, 0xffff
and ecx, 0xff
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
and eax, 0xff
and edi, 0xffff
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
and eax, 0xffff
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], eax
jmp 0x40eecb
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x34]
xor esi, esi
mov si, word [ebp]
add ebp, 2
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x4c]
and edx, edi
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv edi
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x2c]
and edx, ecx
mov edi, eax
mov eax, edx
shl eax, 8
sub eax, edx
and edi, 0xff
cdq
idiv ecx
mov ecx, dword [esp + 0x64]
or edi, 0x200
shr esi, cl
mov ecx, dword [esp + 0x1c]
shl edi, 8
and esi, ecx
and eax, 0xff
or edi, eax
mov eax, esi
shl eax, 8
sub eax, esi
cdq
idiv ecx
shl edi, 8
and eax, 0xff
or edi, eax
xor eax, eax
mov al, byte [ebp]
push edi
mov edx, eax
and eax, 0xf
shr edx, 4
mov esi, eax
inc ebp
xor eax, eax
mov al, byte [ebp]
mov ecx, eax
and eax, 0xf
shr ecx, 4
inc ecx
inc eax
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
add esi, eax
add edx, ecx
push esi
push edx
mov ecx, ebx
inc ebp
call fcn.0040c900
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
inc eax
and edx, 0xff
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x40eec3
jmp 0x40eff4
mov eax, dword [esp + 0x24]
mov ecx, ebx
and eax, 0xff
shl eax, 1
push eax
push ebp
call fcn.0040b880
mov al, byte [esp + 0x24]
xor esi, esi
test al, al
jbe 0x40eff4
xor eax, eax
push edi
mov al, byte [ebp]
mov edx, eax
and eax, 0xf
shr edx, 4
mov dword [esp + 0x54], eax
inc ebp
xor eax, eax
mov al, byte [ebp]
mov ecx, eax
and eax, 0xf
shr ecx, 4
inc ecx
inc eax
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x24]
add edx, ecx
push eax
push edx
mov ecx, ebx
inc ebp
call fcn.0040c900
mov edx, dword [esp + 0x24]
inc esi
and edx, 0xff
cmp esi, edx
jl 0x40efa7
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
add eax, 0x10
sub edx, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], edx
jl 0x40eaef
mov esi, dword [esp + 0xa4]
mov ebp, dword [esp + 0x74]
lea ecx, [esp + 0x84]
call fcn.00408d90
lea ecx, [esp + 0x8c]
call fcn.00408d40
lea ecx, [esp + 0x6c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00408cd0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
add eax, 0x10
sub edx, 0x10
cmp eax, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], edx
jl 0x40ea7b
pop edi
pop esi
mov ecx, dword [esp + 0x8c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 0x10