Function at 0x40c800
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x43af00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x40]
mov eax, dword [ebp + 0x4474]
add eax, 4
push eax
push ecx
mov ecx, ebp
call fcn.0040b880
mov eax, dword [esp + 0x40]
mov si, word [ebp + 0x4420]
mov edx, eax
mov ecx, eax
and edx, 0xff0000
mov bl, byte [ebp + 0x4422]
shr ecx, 0x10
or edx, ecx
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
mov dword [esp + 0x20], esi
or ecx, eax
mov ax, word [ebp + 0x441c]
shr edx, 8
shl ecx, 8
or edx, ecx
mov cl, byte [ebp + 0x4424]
mov byte [esp + 0x12], cl
xor ecx, ecx
mov cl, byte [ebp + 0x4418]
mov dword [esp + 0x40], edx
mov dl, byte [ebp + 0x4423]
mov dword [esp + 0x28], eax
mov byte [esp + 0x13], dl
mov dx, word [ebp + 0x441e]
lea edi, [ecx - 8]
mov dword [esp + 0x24], edx
cmp edi, 0x18
ja case.0x40c426.11
xor ecx, ecx
mov cl, byte [edi + 0x40c8e4]
jmp dword [ecx*4 + 0x40c8d4]
mov edi, dword [esp + 0x44]
and edi, 0xff
jmp 0x40c443
mov edi, dword [esp + 0x44]
and edi, 0xffff
mov cl, byte [esp + 0x12]
and edx, 0xffff
mov dword [esp + 0x14], edx
mov edx, edi
shr edx, cl
and esi, 0xffff
and eax, 0xffff
mov dword [esp + 0x18], eax
mov cl, byte [esp + 0x13]
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv esi
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x14]
and edx, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
and esi, 0xff
cdq
idiv ecx
mov cl, bl
or esi, 0x200
shr edi, cl
mov ecx, dword [esp + 0x18]
shl esi, 8
and edi, ecx
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
cdq
idiv ecx
shl esi, 8
and eax, 0xff
or esi, eax
jmp 0x40c54e
mov edi, dword [esp + 0x44]
mov cl, byte [esp + 0x12]
and edx, 0xffff
and esi, 0xffff
mov dword [esp + 0x14], edx
mov edx, edi
shr edx, cl
and eax, 0xffff
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], eax
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div esi
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x14]
and edx, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div ecx
mov cl, bl
and esi, 0xff
shr edi, cl
mov ecx, dword [esp + 0x18]
or esi, 0x200
shl esi, 8
xor edx, edx
and edi, ecx
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
div ecx
shl esi, 8
and eax, 0xff
or esi, eax
jmp 0x40c54e
mov esi, dword [esp + 0x84]
lea eax, [ebp + 0x1e4]
lea ecx, [esp + 0x38]
push eax
call fcn.00408cb0
mov edx, dword [ebp + 0x3a1c]
mov eax, dword [ebp + 0x3a20]
push edx
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x84], 0
call fcn.00408d20
mov ecx, dword [ebp + 0x3a24]
mov edx, dword [ebp + 0x3a20]
push ecx
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x84], 1
call fcn.00408d60
mov edi, dword [esp + 0x84]
xor eax, eax
push esi
xor ecx, ecx
mov ax, word [edi + 6]
mov cx, word [edi + 4]
push eax
xor edx, edx
mov dx, word [edi + 2]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x90], 2
call fcn.0040c900
lea ecx, [esp + 0x48]
mov byte [esp + 0x7c], 1
call fcn.00408d90
lea ecx, [esp + 0x50]
mov byte [esp + 0x7c], 0
call fcn.00408d40
lea ecx, [esp + 0x38]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00408cd0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40c8bc
mov ecx, dword [ebp + 0x4474]
add ecx, 4
imul eax, ecx
mov dword [esp + 0x30], ecx
push eax
mov ecx, ebp
call fcn.0040bb90
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 0x1c4]
imul ecx, dword [esp + 0x30]
push ecx
push edx
mov ecx, ebp
call fcn.0040b880
mov eax, dword [ebp + 0x1c4]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x1e4]
push eax
call fcn.00408cb0
mov ecx, dword [ebp + 0x3a1c]
mov edx, dword [ebp + 0x3a20]
push ecx
push edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x84], 3
call fcn.00408d20
mov eax, dword [ebp + 0x3a24]
mov ecx, dword [ebp + 0x3a20]
push eax
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0x84], 4
call fcn.00408d60
mov eax, dword [esp + 0x40]
mov byte [esp + 0x7c], 5
test eax, eax
mov dword [esp + 0x34], 0
jbe 0x40c88f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x4474]
mov eax, ecx
add eax, edx
mov dl, byte [ebp + 0x4418]
cmp dl, 8
mov dword [esp + 0x2c], eax
je 0x40c775
cmp dl, 0x10
je 0x40c76a
cmp dl, 0x20
jne 0x40c80c
mov edi, dword [ecx]
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x12]
mov esi, dword [esp + 0x20]
mov edx, edi
and eax, 0xffff
shr edx, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
and esi, 0xffff
and eax, 0xffff
mov dword [esp + 0x18], eax
mov cl, byte [esp + 0x13]
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div esi
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x14]
and edx, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div ecx
mov cl, bl
and esi, 0xff
shr edi, cl
mov ecx, dword [esp + 0x18]
or esi, 0x200
shl esi, 8
xor edx, edx
and edi, ecx
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
shl esi, 8
div ecx
jmp 0x40c7fa
mov edx, dword [esp + 0x1c]
xor edi, edi
mov di, word [edx]
jmp 0x40c77b
xor eax, eax
mov al, byte [ecx]
mov edi, eax
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x12]
mov esi, dword [esp + 0x20]
mov edx, edi
and eax, 0xffff
and esi, 0xffff
shr edx, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
and eax, 0xffff
mov cl, byte [esp + 0x13]
mov dword [esp + 0x18], eax
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv esi
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x14]
and edx, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
and esi, 0xff
cdq
idiv ecx
mov cl, bl
or esi, 0x200
shr edi, cl
mov ecx, dword [esp + 0x18]
shl esi, 8
and edi, ecx
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
cdq
shl esi, 8
idiv ecx
mov edi, dword [esp + 0x84]
and eax, 0xff
or esi, eax
mov eax, dword [esp + 0x2c]
movzx dx, byte [eax + 1]
movzx cx, byte [eax]
add dx, word [edi + 2]
add cx, word [edi]
push esi
mov word [esp + 0x6e], dx
mov word [esp + 0x6c], cx
movzx dx, byte [eax + 3]
movzx cx, byte [eax + 2]
mov word [esp + 0x72], dx
mov word [esp + 0x70], cx
mov eax, dword [esp + 0x72]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6e]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x70]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
mov ecx, ebp
call fcn.0040c900
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jb 0x40c6ae
lea ecx, [esp + 0x58]
mov byte [esp + 0x7c], 4
call fcn.00408d90
lea ecx, [esp + 0x60]
mov byte [esp + 0x7c], 3
call fcn.00408d40
lea ecx, [esp + 0x3c]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00408cd0
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 4