Function at 0x439900
Capabilities:
Check for time delay via gettickcount
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4b6c9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov esi, dword [esp + 0x1d0]
mov dword [esp + 0x19c], ebp
cmp esi, ebp
je 0x4399fd
mov eax, dword [esp + 0x1b8]
push str.Graph
lea ecx, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call fcn.004678a0
add esp, 8
test eax, eax
jne 0x439973
or eax, 0xffffffff
jmp 0x43ac76
mov edx, dword [esp + 0x1dc]
mov eax, dword [esp + 0x1d8]
mov ecx, dword [esp + 0x1d4]
push esi
push edx
mov edx, dword [esp + 0x1d4]
push eax
mov eax, dword [esp + 0x1d4]
push ecx
mov ecx, dword [esp + 0x1d4]
push edx
mov edx, dword [esp + 0x1d4]
push eax
mov eax, dword [esp + 0x1d4]
push ecx
push edx
mov edx, dword [esp + 0x1d4]
lea ecx, [esp + 0xb0]
push eax
push ecx
mov ecx, dword [esp + 0x1cc]
push edx
mov edx, dword [esp + 0x1d4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x1e8]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1ec]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0043acc0
add esp, 0x3c
jmp 0x43ac76
mov eax, dword [esp + 0x1dc]
mov ebx, dword [esp + 0x1b8]
cmp eax, ebp
jne 0x439a6a
mov eax, dword [0x4d6dd8]
xor esi, esi
cmp eax, ebp
jle 0x439a6a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, dword [0x4d6dd0]
lea eax, [ecx + ebp + 2]
push ebx
push eax
call edi
mov ecx, dword [0x4d6dd0]
test eax, eax
jne 0x439a5a
mov al, byte [ecx + ebp + 1]
cmp al, 1
jne 0x439a4b
mov edx, dword [esp + 0x1d4]
test edx, edx
je 0x439a97
cmp al, 2
jne 0x439a5a
mov eax, dword [esp + 0x1d4]
test eax, eax
jne 0x439a97
mov eax, dword [0x4d6dd8]
inc esi
add ebp, 0x116
cmp esi, eax
jl 0x439a26
push str.Graph
lea eax, [esp + 0x94]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call fcn.004678a0
add esp, 8
test eax, eax
jne 0x439cf0
or eax, 0xffffffff
jmp 0x43ac76
cmp esi, 0xffffffff
je 0x439a6a
lea eax, [esi + esi*2]
shl eax, 3
sub eax, esi
lea edx, [eax + eax*2]
lea ebp, [esi + edx*2]
shl ebp, 1
mov edi, dword [ecx + ebp + 0x112]
mov eax, dword [ecx + ebp + 0x10e]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], eax
call fcn.004ad59e
mov ebx, dword [esp + 0x1b4]
mov byte [esp + 0x19c], 1
test ebx, ebx
jne 0x439ae2
xor eax, eax
jmp 0x439ae5
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call fcn.004ad655
mov eax, dword [0x4d6dac]
test eax, eax
je 0x439b02
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.004ad796
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
push 3
mov ecx, ebx
call fcn.004ad921
mov eax, dword [esp + 0x1d4]
test eax, eax
je 0x439c47
mov eax, dword [0x4d6dd0]
mov eax, dword [eax + ebp + 0x10a]
test eax, eax
je 0x439b43
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.004ad796
mov esi, dword [esp + 0x1c8]
mov ecx, dword [esp + 0x1c0]
mov edi, dword [esp + 0x1c4]
mov edx, dword [esp + 0x24]
sub esi, ecx
mov ecx, dword [esp + 0x1bc]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
sub edi, ecx
push 0x8800c6
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x1d8]
push esi
push edi
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x439bb5
xor eax, eax
jmp 0x439bbc
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.004ad796
mov ecx, dword [0x4d6dd0]
mov ebp, dword [ecx + ebp + 0x106]
test ebp, ebp
jne 0x439bdc
xor eax, eax
jmp 0x439bdf
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x24]
push eax
push edx
call fcn.004ad796
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov ebp, eax
lea eax, [esp + 0x20]
neg eax
sbb eax, eax
push 0xee0086
and eax, edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c4]
push edx
mov edx, dword [ebx + 4]
push 0
push 0
push eax
mov eax, dword [esp + 0x1d8]
push esi
push edi
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
test ebp, ebp
jne 0x439c39
mov eax, dword [esp + 0x24]
push ebp
push eax
jmp 0x439cca
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x24]
push ebp
push eax
jmp 0x439cca
mov ecx, dword [0x4d6dd0]
mov ebp, dword [ecx + ebp + 0x106]
test ebp, ebp
jne 0x439c5c
xor eax, eax
jmp 0x439c5f
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x24]
push eax
push edx
call fcn.004ad796
mov edx, dword [esp + 0x1c4]
mov ecx, dword [esp + 0x1c8]
mov ebp, dword [esp + 0x1c0]
mov esi, eax
mov eax, dword [esp + 0x1bc]
sub ecx, ebp
sub edx, eax
lea eax, [esp + 0x20]
neg eax
push 0xcc0020
push edi
mov edi, dword [esp + 0x38]
sbb eax, eax
push edi
and eax, dword [esp + 0x30]
push 0
push 0
push eax
mov eax, dword [esp + 0x1d4]
push ecx
mov ecx, dword [ebx + 4]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
test esi, esi
je 0x439cc4
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x24]
push esi
push edx
call fcn.004ad796
lea ecx, [esp + 0x20]
call fcn.004ad6bd
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 0
call fcn.004ad6d3
xor eax, eax
jmp 0x43ac76
mov eax, dword [0x4d0d24]
cmp eax, 0xffffffff
je 0x439d03
push eax
call fcn.0049c621
add esp, 4
lea ecx, [esp + 0x90]
push 0x8000
push ecx
mov dword [0x4d0d24], 0xffffffff
call fcn.004982c6
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x439d34
or eax, eax
jmp 0x43ac76
mov edi, dword [esp + 0x1cc]
push 0
push esi
push edi
call fcn.00439390
test eax, eax
jne 0x43ac76
mov edx, dword [esp + 0x1bc]
cmp edi, 6
mov edi, dword [esp + 0x1c0]
jne 0x439dad
mov ecx, dword [0x4d5f00]
sub esp, 0x10
mov ebx, esp
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [ebx], edx
add eax, edx
lea edx, [esp + 0x78]
add ecx, edi
mov dword [ebx + 4], edi
push edx
mov dword [ebx + 8], eax
lea eax, [esp + 0x74]
push eax
push esi
mov dword [ebx + 0xc], ecx
call fcn.00438b30
add esp, 0x1c
test eax, eax
je 0x439dad
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00496fcb
mov edx, dword [esp + 0x6c]
push edx
call fcn.00496fcb
add esp, 8
mov eax, dword [0x4d6dc8]
mov ecx, dword [0x4d5f00]
add eax, 0x7918
mov edi, 0x7894
mov dword [ecx + 0x48], eax
mov edx, dword [0x4d5f00]
mov dword [edx + 0x4c], edi
mov eax, dword [0x4d5f00]
mov eax, dword [eax + 0xc]
cmp eax, 1
je 0x439de0
cmp eax, 2
jne 0x439e1b
mov ecx, dword [0x4d6dc8]
add ecx, 0xfc00
push ecx
push 0x4d5ae8
push 0x100
call fcn.00439530
mov edx, dword [0x4d6dc8]
add edx, 0xf1b0
push edx
push 0x4d5ae8
push 0x100
call fcn.00439530
add esp, 0x18
mov eax, dword [0x4d6dc8]
mov edx, dword [0x4d5f00]
lea ecx, [eax + 0x7918]
lea esi, [eax + 0xf1b0]
add eax, 0xfc00
mov dword [esp + 0x30], ecx
mov dword [edx + 0x50], eax
mov edx, dword [0x4d5f00]
lea eax, [ecx + 4]
mov dword [esp + 0x8c], esi
mov dword [edx + 0x48], eax
mov eax, dword [0x4d5f00]
xor edx, edx
mov dword [eax + 0x4c], edi
mov eax, dword [0x4d5f00]
mov edi, dword [esp + 0x1b4]
mov ebp, dword [eax + 0xc]
mov ax, word [eax + 4]
cmp ebp, 3
mov word [ecx], ax
setl dl
and eax, 0xffff
dec edx
mov dword [esp + 0x14], eax
mov eax, dword [0x4d5f00]
and edx, 2
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp eax, 4
mov dword [esp + 0x64], edx
mov dword [esp + 0x18], ecx
ja case.default.0x439e9c
jmp dword [eax*4 + 0x43ac90]
mov ebx, 1
jmp 0x439ee8
push 0x10
push 0x4d5ae8
push esi
push edi
mov ebx, 8
call fcn.0043b060
add esp, 0x10
jmp 0x439ee8
push 0x100
push 0x4d5ae8
push esi
push edi
mov ebx, 8
call fcn.0043b060
add esp, 0x10
jmp 0x439ee8
mov ebx, 8
jmp 0x439ee8
mov ebx, dword [esp + 0x6c]
mov edx, dword [0x4d6dc8]
xor esi, esi
lea eax, [edx + 0xf980]
mov dword [0x4d5ef0], eax
mov dword [eax], 0x28
mov eax, dword [0x4d5ef0]
mov word [eax + 0xc], 1
mov ecx, dword [0x4d5ef0]
mov word [ecx + 0xe], bx
mov edx, dword [0x4d5ef0]
mov dword [edx + 0x10], esi
mov eax, dword [0x4d5ef0]
mov dword [eax + 0x14], esi
mov ecx, dword [0x4d5f00]
mov eax, dword [ecx + 0x14]
cmp eax, esi
je 0x439f64
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x2040811
lea ecx, [ecx + ecx*4]
shl ecx, 4
sub ecx, 0x1388
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [0x4d5ef0]
shr ecx, 7
mov dword [edx + 0x18], ecx
jmp 0x439f6c
mov eax, dword [0x4d5ef0]
mov dword [eax + 0x18], esi
mov ecx, dword [0x4d5f00]
mov eax, dword [ecx + 0x18]
cmp eax, esi
je 0x439fa9
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x2040811
lea ecx, [ecx + ecx*4]
shl ecx, 4
sub ecx, 0x1388
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [0x4d5ef0]
shr ecx, 7
mov dword [edx + 0x1c], ecx
jmp 0x439fb1
mov eax, dword [0x4d5ef0]
mov dword [eax + 0x1c], esi
mov ecx, dword [0x4d5ef0]
xor ebp, ebp
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x18
mov dword [ecx + 0x20], ebp
mov edx, dword [0x4d5ef0]
mov dword [esp + 0x44], ebp
mov dword [edx + 0x24], ebp
mov eax, dword [edi + 8]
push eax
call esi
cmp eax, 2
je 0x439ffb
mov ecx, dword [edi + 8]
mov ebp, 1
push 0x26
push ecx
mov dword [esp + 0x48], ebp
call esi
test ah, 0x20
jne 0x439ffb
mov ebp, 2
mov dword [esp + 0x40], ebp
mov edx, dword [0x4d6da8]
cmp edx, 0x100
jne 0x43a012
mov ebp, 2
mov dword [esp + 0x40], ebp
cmp ebx, 1
jne 0x43a035
mov edx, dword [0x4d5ef0]
mov dword [edx + 0x28], 0
mov eax, dword [0x4d5ef0]
mov dword [eax + 0x2c], 0xff
jmp 0x43a191
test ebp, ebp
je 0x43a133
mov eax, dword [0x4d5f00]
xor ecx, ecx
mov eax, dword [eax + 0xc]
cmp eax, 1
jne 0x43a053
mov ecx, 0x10
jmp 0x43a08e
cmp eax, 2
jne 0x43a05f
mov ecx, 0x100
jmp 0x43a08e
cmp eax, 3
je 0x43a069
cmp eax, 4
jne 0x43a08e
cmp edx, 0x100
jne 0x43a081
mov ecx, edx
mov edx, dword [0x4d5ef0]
mov word [edx + 0xe], 8
jmp 0x43a08e
mov eax, dword [0x4d5ef0]
xor ecx, ecx
mov word [eax + 0xe], 0x18
mov edx, dword [0x4d5ef0]
cmp ecx, 0x100
mov dword [edx + 0x20], ecx
mov edx, dword [0x4d5f00]
jne 0x43a124
mov eax, dword [edx + 0xc]
cmp eax, 3
je 0x43a0b2
cmp eax, 4
jne 0x43a124
xor ecx, ecx
mov eax, ecx
mov esi, 6
cdq
idiv esi
mov al, byte [edx + 0x4d2da8]
mov edx, dword [0x4d5ef0]
mov byte [edx + ecx*4 + 0x2a], al
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr edx, 0x1f
add eax, edx
cdq
idiv esi
mov al, byte [edx + 0x4d2da8]
mov edx, dword [0x4d5ef0]
mov byte [edx + ecx*4 + 0x29], al
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc ecx
mov dl, byte [edx + eax + 0x4d2da8]
mov eax, dword [0x4d5ef0]
cmp ecx, 0x100
mov byte [eax + ecx*4 + 0x24], dl
mov edx, dword [0x4d5ef0]
mov byte [edx + ecx*4 + 0x27], 0
jl 0x43a0b4
jmp 0x43a191
mov eax, dword [0x4d5ef0]
mov esi, dword [edx + 0x50]
lea edi, [eax + 0x28]
rep movsd dword es:[edi], dword [esi]
jmp 0x43a191
xor eax, eax
mov edx, dword [0x4d5ef0]
mov ecx, eax
and cl, 1
neg cl
sbb cl, cl
and ecx, 0xff
mov byte [edx + eax*4 + 0x2a], cl
mov edx, dword [0x4d5ef0]
mov ecx, eax
and cl, 2
neg cl
sbb cl, cl
and ecx, 0xff
mov byte [edx + eax*4 + 0x29], cl
mov edx, dword [0x4d5ef0]
mov ecx, eax
and cl, 4
neg cl
sbb cl, cl
and ecx, 0xff
mov byte [edx + eax*4 + 0x28], cl
mov ecx, dword [0x4d5ef0]
mov byte [ecx + eax*4 + 0x2b], 0
inc eax
cmp eax, 8
jl 0x43a135
mov eax, dword [esp + 0x1dc]
test eax, eax
je 0x43a1ee
mov eax, dword [esp + 0x1d8]
test eax, eax
jne 0x43a1ee
mov edx, dword [0x4d5ef0]
cmp word [edx + 0xe], 0x18
jne 0x43a1d1
mov eax, dword [0x4d5f00]
call dword [eax + 0x40]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0049c621
add esp, 4
or eax, 0xffffffff
jmp 0x43ac76
mov edx, dword [0x4d5f00]
call dword [edx + 0x40]
mov eax, dword [esp + 0x1c]
push eax
call fcn.0049c621
add esp, 4
xor eax, eax
jmp 0x43ac76
lea ecx, [esp + 0x50]
call fcn.004ad59e
lea ecx, [esp + 0x70]
mov byte [esp + 0x19c], 2
call fcn.004ad59e
mov ebp, dword [esp + 0x1b4]
mov byte [esp + 0x19c], 3
test ebp, ebp
jne 0x43a21f
xor eax, eax
jmp 0x43a222
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call esi
push eax
lea ecx, [esp + 0x54]
call fcn.004ad655
test ebp, ebp
jne 0x43a23d
xor eax, eax
jmp 0x43a240
mov eax, dword [ebp + 4]
push eax
call esi
push eax
lea ecx, [esp + 0x74]
call fcn.004ad655
push 8
call fcn.004aa6ea
add esp, 4
test eax, eax
je 0x43a26c
mov dword [eax + 4], 0
mov dword [eax], 0x4bcfb4
mov esi, eax
jmp 0x43a26e
xor esi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ecx
mov ebx, esi
push edx
push eax
mov dword [esp + 0x90], ebx
call edi
push eax
mov ecx, esi
call fcn.004ae048
test esi, esi
jne 0x43a320
call fcn.0043bdf0
push 8
call fcn.004aa6ea
add esp, 4
cmp eax, esi
je 0x43a2bb
mov dword [eax + 4], esi
mov dword [eax], 0x4bcfb4
mov esi, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
push ecx
mov ebx, esi
push edx
push eax
mov dword [esp + 0x90], ebx
call edi
push eax
mov ecx, esi
call fcn.004ae048
test esi, esi
jne 0x43a320
mov ecx, dword [0x4d5f00]
call dword [ecx + 0x40]
mov edx, dword [esp + 0x1c]
push edx
call fcn.0049c621
add esp, 4
lea ecx, [esp + 0x70]
mov byte [esp + 0x19c], 2
call fcn.004ad6d3
lea ecx, [esp + 0x50]
mov byte [esp + 0x19c], 0
call fcn.004ad6d3
or eax, 0xffffffff
jmp 0x43ac76
lea eax, [esp + 0x50]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1d4]
test eax, eax
je 0x43a3f3
push 8
call fcn.004aa6ea
add esp, 4
test eax, eax
je 0x43a356
mov dword [eax + 4], 0
mov dword [eax], 0x4bcfb4
mov esi, eax
jmp 0x43a358
xor esi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
mov dword [esp + 0x48], esi
call edi
push eax
mov ecx, esi
call fcn.004ae048
test esi, esi
jne 0x43a3be
call fcn.0043bdf0
push 8
call fcn.004aa6ea
add esp, 4
test eax, eax
je 0x43a398
mov dword [eax + 4], esi
mov dword [eax], 0x4bcfb4
mov esi, eax
jmp 0x43a39a
xor esi, esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
mov dword [esp + 0x48], esi
call edi
push eax
mov ecx, esi
call fcn.004ae048
test esi, esi
je 0x43a2e0
push 1
push 0x8000
call fcn.00497013
add esp, 8
mov dword [esp + 0x60], eax
test eax, eax
jne 0x43a3e7
mov eax, dword [0x4d5f00]
call dword [eax + 0x40]
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x43a2ee
lea edx, [esp + 0x70]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x1c0]
mov edx, dword [0x4d6dd8]
mov ecx, dword [0x4d6dd4]
mov dword [esp + 0x68], eax
lea eax, [edx + 1]
xor ebp, ebp
cmp ecx, eax
jne 0x43a46f
add ecx, 5
mov dword [0x4d6dd4], ecx
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
mov ecx, dword [0x4d6dd0]
shl eax, 1
push eax
push ecx
call fcn.00497980
mov edx, dword [0x4d6dd4]
mov edi, eax
add esp, 8
xor eax, eax
lea esi, [edx - 5]
mov dword [0x4d6dd0], edi
mov ecx, 0x15b
lea edx, [esi + esi*2]
shl edx, 3
sub edx, esi
lea edx, [edx + edx*2]
lea edx, [esi + edx*2]
lea edi, [edi + edx*2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x4d6dd8]
lea eax, [edx + edx*2]
shl eax, 3
sub eax, edx
lea eax, [eax + eax*2]
lea ecx, [edx + eax*2]
mov edx, dword [0x4d6dd0]
mov eax, dword [esp + 0x1d4]
mov dword [edx + ecx*2 + 0x106], ebx
mov ecx, dword [0x4d6dd8]
test eax, eax
lea eax, [ecx + ecx*2]
je 0x43a4db
shl eax, 3
mov edx, dword [0x4d6dd0]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*2]
mov byte [edx + ecx*2 + 1], 2
mov ecx, dword [0x4d6dd8]
mov edx, dword [0x4d6dd0]
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x3c]
mov dword [edx + ecx*2 + 0x10a], eax
jmp 0x43a4f1
shl eax, 3
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
mov ecx, dword [0x4d6dd0]
mov byte [ecx + eax*2 + 1], 1
mov ecx, dword [0x4d6dd8]
mov edx, dword [esp + 0x1b8]
push edx
mov edx, dword [0x4d6dd0]
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*2]
lea eax, [edx + ecx*2 + 2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [0x4d6dd8]
mov esi, dword [esp + 0x18]
xor edi, edi
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
mov ecx, dword [0x4d6dd0]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*2 + 0x10e], edx
mov ecx, dword [0x4d6dd8]
mov edx, dword [0x4d6dd0]
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
cmp ebx, edi
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*2]
mov dword [edx + ecx*2 + 0x112], esi
jne 0x43a572
xor eax, eax
jmp 0x43a575
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x58]
push eax
call fcn.004ad796
mov ebx, dword [sym.imp.GDI32.dll_RealizePalette]
mov dword [esp + 0x38], eax
cmp dword [0x4d6da8], edi
je 0x43a5b4
mov eax, dword [0x4d6dac]
cmp eax, edi
jne 0x43a59f
xor eax, eax
jmp 0x43a5a2
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.004ad796
mov edx, dword [esp + 0x54]
push edx
call ebx
cmp dword [esp + 0x1d4], edi
je 0x43a606
mov eax, dword [esp + 0x3c]
cmp eax, edi
jne 0x43a5c9
xor eax, eax
jmp 0x43a5cc
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.004ad796
mov dword [esp + 0x34], eax
mov eax, dword [0x4d6da8]
cmp eax, edi
je 0x43a606
mov eax, dword [0x4d6dac]
cmp eax, edi
jne 0x43a5f1
xor eax, eax
jmp 0x43a5f4
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x74]
push eax
push ecx
call fcn.004ad796
mov edx, dword [esp + 0x74]
push edx
call ebx
mov eax, dword [0x4d5f00]
mov dword [esp + 0x80], edi
cmp dword [eax], edi
je 0x43a618
mov ebp, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov ecx, dword [eax + 4]
push edi
dec ecx
push 1
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x6c]
dec edx
mov dword [esp + 0x34], edx
lea edx, [esp + 0x28]
push ecx
push edx
call dword [eax + 0x38]
mov eax, dword [0x4d5f00]
add esp, 0x10
cmp dword [eax + 0xc], edi
je 0x43a7ff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x88], eax
call dword [sym.imp.USER32.dll_GetCursor]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [0x4d5f00]
push ecx
push edx
mov byte [esp + 0x1b], 0
call dword [eax + 0x3c]
add esp, 8
test eax, eax
jle 0x43a981
xor eax, eax
mov ebx, dword [esp + 0x30]
cdq
idiv dword [esp + 0x18]
movsx ecx, ax
mov dword [esp + 0x64], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x88]
cmp eax, 0x3e8
jbe 0x43a6c9
push 0x7f02
push 0
mov byte [esp + 0x1b], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
sub edx, edi
inc edx
mov word [ebx], dx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x64]
inc eax
mov word [ebx + 2], ax
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x80]
sub edx, esi
mov esi, dword [esp + 0x18]
lea eax, [eax + edx + 1]
mov dword [esp + 0x80], eax
imul eax, esi
cdq
idiv esi
movsx esi, ax
mov eax, dword [0x4d5f00]
mov dword [esp + 0x64], esi
sub esi, ecx
cmp dword [eax], 0
je 0x43a77f
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x8c]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [0x4d6dc8]
push eax
push esi
mov edi, ebp
push ecx
push 0x7918
sub edi, esi
push edx
mov ecx, dword [esp + 0x60]
push ebx
push edi
push 0
mov edx, dword [esp + 0x70]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call fcn.0043b170
mov eax, dword [0x4d5f24]
add esp, 0x34
cmp ebp, eax
jle 0x43a7e9
mov ebp, edi
jmp 0x43a7cc
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [0x4d6dc8]
push edx
push esi
push eax
push 0x7918
push ecx
mov eax, dword [esp + 0x60]
push ebx
push ebp
push 0
mov ecx, dword [esp + 0x70]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x80]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.0043b170
add esp, 0x34
add ebp, esi
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4d5f00]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [eax + 0x3c]
add esp, 8
test eax, eax
jg 0x43a69c
mov al, byte [esp + 0x13]
test al, al
je 0x43a981
mov ecx, dword [esp + 0x6c]
push ecx
jmp 0x43a97b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_GetCursor]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x88], eax
mov ax, word [esp + 0x14]
lea ecx, [esp + 0x20]
mov word [edx], ax
mov edx, dword [esp + 0x1c]
mov eax, dword [0x4d5f00]
push ecx
push edx
mov byte [esp + 0x1b], 0
call dword [eax + 0x3c]
add esp, 8
test eax, eax
jle 0x43a981
xor eax, eax
cdq
idiv dword [esp + 0x18]
movsx ebx, ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x6c]
cmp eax, 0x3e8
jbe 0x43a878
push 0x7f02
push 0
mov byte [esp + 0x1b], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x80]
inc ecx
mov word [edi + 2], cx
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov ecx, ebx
sub edx, esi
mov esi, dword [esp + 0x18]
lea eax, [eax + edx + 1]
mov dword [esp + 0x80], eax
imul eax, esi
cdq
idiv esi
movsx ebx, ax
mov esi, ebx
sub esi, ecx
mov ecx, dword [0x4d5f00]
cmp dword [ecx], 0
je 0x43a912
mov edx, dword [esp + 0x14]
mov eax, dword [0x4d6dc8]
mov ecx, dword [esp + 0x30]
push 0
push esi
mov edi, ebp
push edx
push 0x7918
sub edi, esi
push eax
mov eax, dword [esp + 0x58]
push ecx
push edi
push 0
mov ecx, dword [esp + 0x68]
sub esp, 0xc
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.0043bc30
mov eax, dword [0x4d5f24]
add esp, 0x2c
cmp ebp, eax
jle 0x43a96b
mov ebp, edi
jmp 0x43a94d
mov ecx, dword [esp + 0x14]
mov edx, dword [0x4d6dc8]
push 0
push esi
push ecx
push 0x7918
push edx
mov ecx, dword [esp + 0x58]
push edi
push ebp
push 0
mov edx, dword [esp + 0x68]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call fcn.0043bc30
add esp, 0x2c
add ebp, esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4d5f00]
lea edx, [esp + 0x20]
push edx
push eax
call dword [ecx + 0x3c]
add esp, 8
test eax, eax
jg 0x43a84e
mov al, byte [esp + 0x13]
test al, al
je 0x43a981
mov edx, dword [esp + 0x88]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x4d5f00]
call dword [eax + 0x40]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0049c621
mov edx, dword [0x4d6dc8]
add esp, 4
mov dword [edx], 0
mov eax, dword [0x4d5f00]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x43abce
mov ecx, dword [0x4d6dd8]
mov esi, dword [esp + 0x1d4]
inc ecx
test esi, esi
mov dword [0x4d6dd8], ecx
je 0x43a9d7
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00496fcb
add esp, 4
mov eax, dword [esp + 0x1dc]
test eax, eax
je 0x43aa4d
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43a9ed
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x54]
push eax
push edx
call fcn.004ad796
test esi, esi
je 0x43aa12
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43aa07
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.004ad796
lea ecx, [esp + 0x50]
call fcn.004ad6bd
lea ecx, [esp + 0x70]
call fcn.004ad6bd
lea ecx, [esp + 0x70]
mov byte [esp + 0x19c], 2
call fcn.004ad6d3
lea ecx, [esp + 0x50]
mov byte [esp + 0x19c], 0
call fcn.004ad6d3
xor eax, eax
jmp 0x43ac76
mov ebx, dword [esp + 0x1b4]
push 3
mov ecx, ebx
call fcn.004ad921
test esi, esi
je 0x43aaf7
mov esi, dword [esp + 0x1c8]
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x1c4]
mov ecx, dword [esp + 0x1bc]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x74]
lea eax, [esp + 0x70]
sub esi, ebx
sub edi, ecx
push 0x8800c6
neg eax
push edx
mov edx, dword [esp + 0x1c]
sbb eax, eax
push edx
and eax, ebp
push 0
push 0
mov ebp, dword [sym.imp.GDI32.dll_StretchBlt]
push eax
mov eax, dword [esp + 0x1cc]
push esi
push edi
push ebx
push ecx
mov ecx, dword [eax + 4]
push ecx
call ebp
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push 0xee0086
neg eax
sbb eax, eax
push edx
and eax, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c4]
push ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x1cc]
push esi
push edi
mov ecx, dword [eax + 4]
push ebx
push edx
push ecx
call ebp
jmp 0x43ab44
mov ecx, dword [esp + 0x1c8]
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x1c4]
mov edi, dword [esp + 0x1bc]
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0x50]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebp
mov ebp, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push 0
push 0
push eax
push ecx
push edx
mov edx, dword [ebx + 4]
push esi
push edi
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x1d8]
test eax, eax
jne 0x43ab88
mov ecx, dword [0x4d6dd8]
dec ecx
mov dword [0x4d6dd8], ecx
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x43ab6e
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x1d4]
test eax, eax
je 0x43ab88
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x43ab88
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43ab93
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x58]
push eax
call fcn.004ad796
mov eax, dword [esp + 0x1d4]
test eax, eax
je 0x43aa12
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x43abc0
mov ecx, dword [esp + 0x74]
push eax
push ecx
jmp 0x43aa0d
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x74]
push eax
push ecx
jmp 0x43aa0d
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x43abe0
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov esi, dword [esp + 0x1d4]
test esi, esi
je 0x43ac07
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x43abfa
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00496fcb
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x43ac12
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x54]
push eax
push edx
call fcn.004ad796
test esi, esi
je 0x43ac37
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43ac2c
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.004ad796
lea ecx, [esp + 0x50]
call fcn.004ad6bd
lea ecx, [esp + 0x70]
call fcn.004ad6bd
mov ecx, dword [0x4d5f00]
mov byte [esp + 0x19c], 2
mov esi, dword [ecx + 0x1c]
lea ecx, [esp + 0x70]
call fcn.004ad6d3
lea ecx, [esp + 0x50]
mov byte [esp + 0x19c], 0
call fcn.004ad6d3
mov eax, esi
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x190
ret