Function at 0x502bc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov dword [ebp - 0x20], ebx
jne 0x503077
mov edx, dword [ebp + 0xc]
cmp edx, 0x110
jne 0x502c1b
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp + 0x10]
push edx
call fcn.00501bb0
pop edi
mov dword [ebx], eax
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x18
cmp edx, 0x113
jne 0x502c51
call fcn.00503470
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ebx
cmp edx, 0x111
jne 0x502dcb
movzx eax, bx
mov ecx, 2
mov dword [ebp - 0x2c], eax
cmp cx, ax
jne 0x502cc0
cmp dword [esi + 0x15c], 0
jbe 0x502c84
lea ecx, [esi + 0x44]
call fcn.0042b460
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x20]
call dword [eax + 0xc]
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 1
cmp cx, ax
jne 0x502d64
push 2
push 0xffffffffffffffff
push 0x100c
push dword [esi + 0x120]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x502cf4
mov dword [esi + 0x174], eax
xor eax, eax
jmp 0x502d40
mov eax, dword [esi + 0x164]
mov eax, dword [eax + ecx*4]
mov dword [esi + 0x174], eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x160]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, 0x38e38e39
sub ecx, edx
mov dword [ebp - 0x24], edx
imul ecx
mov ecx, dword [ebp - 0x28]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x50308c
lea eax, [ecx + ecx*8]
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, esi
mov dword [esi + 0x170], eax
call fcn.00462860
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x20]
call dword [eax + 0xc]
push 1
jmp 0x502c96
mov ecx, 0x44d
cmp cx, ax
jne 0x502f39
mov eax, ebx
mov ecx, 0x300
shr eax, 0x10
cmp cx, ax
jne 0x502f39
mov eax, dword [esi + 0x160]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x1f4
jbe 0x502dbf
push 0
push 0x1f4
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x502c9f
mov ecx, esi
call fcn.00503470
jmp 0x502c9f
cmp edx, 0x4e
jne 0x502f39
mov eax, dword [edi + 4]
cmp eax, 0x44e
jne 0x502f39
cmp dword [edi + 8], 0xffffff6a
jne 0x502e75
mov edx, dword [edi + 0x10]
cmp edx, 0xffffffff
je 0x502c9f
mov eax, dword [esi + 0x164]
mov ecx, dword [esi + 0x160]
mov ebx, dword [eax + edx*4]
mov eax, 0x38e38e39
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x50308c
test byte [edi + 0xc], 1
je 0x502c9f
push ebx
push dword [edi + 0x14]
lea eax, [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x2c]
push dword [ebp - 0x2c]
push eax
call fcn.004fe150
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
mov eax, dword [edi + 0x24]
push 0x5707c8
dec eax
push eax
push dword [edi + 0x20]
call fcn.0041ac20
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.00408f00
jmp 0x502c9f
cmp eax, 0x44e
jne 0x502f39
cmp dword [edi + 8], 0xffffff94
jne 0x502ebc
push dword [edi + 0x10]
lea ecx, [esi + 0x124]
call fcn.00462b30
mov ecx, esi
call fcn.00503470
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x44e
jne 0x502f39
cmp dword [edi + 8], 0xfffffffd
jne 0x502f39
mov ecx, dword [edi + 0xc]
cmp ecx, 0xffffffff
je 0x502c9f
mov eax, dword [esi + 0x164]
mov edi, dword [eax + ecx*4]
mov eax, dword [esi + 0x160]
mov dword [esi + 0x174], edi
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
sub ecx, ebx
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x50308c
lea eax, [edi + edi*8]
lea ecx, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, esi
mov dword [esi + 0x170], eax
call fcn.00462860
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi + 0x20]
lea ecx, [esi + 0x20]
call dword [edx + 0xc]
push 1
jmp 0x502c96
lea ecx, [esi + 0xf8]
cmp edx, 5
jne 0x502fa1
xor eax, eax
test ecx, ecx
cmove esi, eax
cmp byte [ecx + 0x1c], al
je 0x502f7d
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp ebx, 2
jne 0x502f6e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x502f86
test ebx, ebx
jne 0x502f7d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x502f86
cmp ebx, 1
je 0x502c9f
mov eax, edi
lea ecx, [esi + 0xf8]
shr eax, 0x10
cwde
push eax
movsx eax, di
push eax
call fcn.0045b6e0
jmp 0x502c9f
cmp edx, 0x24
jne 0x502fcb
cmp dword [ecx + 0x14], 0xffffffff
je 0x502c9f
cmp dword [ecx + 0x18], 0xffffffff
je 0x502c9f
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x1c], eax
jmp 0x502c9f
cmp edx, 0x464
jne 0x503077
mov ecx, dword [esi + 0x2c]
mov eax, 0x66666667
sub ecx, dword [esi + 0x28]
xor ebx, ebx
imul ecx
mov dword [ebp - 0x28], 0
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2c], eax
je 0x50305f
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
cmp ecx, dword [eax]
je 0x503013
inc ebx
add eax, 0x28
cmp ebx, edx
jb 0x503005
jmp 0x50305f
mov edx, dword [esi + 0x28]
lea ebx, [ebx + ebx*4]
shl ebx, 3
lea eax, [edx + 8]
add eax, ebx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0
je 0x503042
push dword [edi]
mov edx, dword [ebp - 0x24]
push dword [edi + 0xc]
mov eax, dword [eax]
push ecx
mov ecx, dword [esi + 0x34]
add ecx, dword [edx + 4]
call eax
mov edx, dword [esi + 0x28]
mov ecx, dword [ebp - 0x34]
cmp dword [edx + ebx + 0x10], 0
je 0x50305f
push dword [edi]
mov eax, dword [edx + ebx + 0x10]
push dword [edi + 0xc]
push ecx
mov ecx, dword [esi + 0x34]
add ecx, dword [edx + ebx + 0x14]
call eax
mov dword [ebp - 0x28], eax
push 0x1c
push edi
call fcn.005189ee
mov eax, dword [ebp - 0x20]
add esp, 8
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
jmp 0x502ca8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x18
call fcn.004314f0
int3