Function at 0x525550
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
test dl, dl
je 0x525564
add esp, 0xfffffff0
call fcn.004046e8
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004786b0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00479cc0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045fa9c
mov dx, 0xbb7
mov eax, dword [ebp - 4]
call fcn.0045fb08
mov eax, dword [ebp - 4]
mov byte [eax + 0x22d], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 0x124], edx
mov dword [eax + 0x120], 0x525d64
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4eb8bc]
call fcn.004ec8ec
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2fc], ebx
mov eax, ebx
xor edx, edx
call fcn.004eca10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov edx, 0x64
call fcn.004eca64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], 0x525ba4
imul eax, dword [ebp + 8], 0x3e8
mov edx, dword [ebp - 4]
mov dword [edx + 0x300], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x304], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x308], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f8], 0
cmp byte [ebp + 0x14], 2
jne 0x525670
mov eax, dword [ebp + 0x18]
call fcn.004e1d0c
test al, al
je 0x52565a
mov eax, dword [0x56a2cc]
cmp dword [eax], 0
je 0x52565a
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f8], 2
jmp 0x525670
mov eax, dword [ebp + 0x18]
call fcn.004e1d7c
test al, al
je 0x525670
mov eax, dword [ebp - 4]
mov byte [eax + 0x2f8], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 2
je 0x525691
xor edx, edx
mov eax, 5
call fcn.00412e84
mov edx, dword [ebp - 4]
mov byte [edx + 0x2f9], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 2
jne 0x52571b
mov eax, dword [ebp + 0x18]
call fcn.00435a34
push eax
mov eax, dword [ebp + 0x18]
call fcn.00435a4c
push eax
mov eax, dword [0x56ab08]
mov eax, dword [eax]
call fcn.0047d944
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x5256c8
adc eax, 0
push eax
mov eax, dword [0x56ab08]
mov eax, dword [eax]
call fcn.0047d950
push eax
mov eax, dword [ebp + 0x18]
call fcn.00435a34
pop edx
sub edx, eax
sar edx, 1
jns 0x5256e8
adc edx, 0
mov eax, dword [ebp - 4]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
call fcn.004e2458
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30c], ebx
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004ed364
jmp 0x525ade
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f9], 0
je 0x525854
mov esi, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x5216a0]
call fcn.00521d4c
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0045f06c
xor edx, edx
mov eax, ebx
call fcn.0045f090
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 1
sete dl
mov eax, ebx
call fcn.00522020
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 1
sete al
mov ecx, dword [ebp + 0x10]
xor edx, edx
call fcn.0043a3b4
mov edx, eax
mov eax, ebx
call fcn.00522004
mov eax, dword [ebp - 4]
mov dword [ebx + 0x234], eax
mov dword [ebx + 0x230], 0x525db0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], 0x525d64
mov dx, 0xbb7
mov eax, ebx
call fcn.0045fb08
mov eax, dword [ebx + 0x208]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebx + 0x48]
push eax
mov esi, dword [ebx + 0x4c]
push esi
mov eax, dword [0x56ab08]
mov eax, dword [eax]
call fcn.0047d944
sub eax, esi
sar eax, 1
jns 0x5257ea
adc eax, 0
push eax
mov eax, dword [0x56ab08]
mov eax, dword [eax]
call fcn.0047d950
mov edx, eax
sub edx, dword [ebx + 0x48]
sar edx, 1
jns 0x525803
adc edx, 0
mov eax, dword [ebp - 4]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0047d128
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047d13c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 1
jne 0x525ade
push 0
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
call fcn.004e51e4
push eax
mov eax, dword [ebp - 4]
call fcn.0046611c
push eax
call sub.user32.dll_SetWindowRgn
jmp 0x525ade
mov eax, dword [ebp + 0x18]
call fcn.00435a34
mov ebx, eax
mov eax, dword [ebp + 0x18]
call fcn.00435a4c
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 0
jne 0x52589f
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xc]
call fcn.004e1c50
test al, al
je 0x525896
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
mov ebx, eax
mov eax, esi
cdq
idiv dword [ebp - 0x10]
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, eax
add ebx, eax
add esi, eax
mov eax, dword [ebp - 4]
call fcn.004660f8
push 0x50
push 0
push 0
push 0xffffd8f0
push 0xffffd8f0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.0046611c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebp - 4]
call fcn.0046611c
push eax
call sub.user32.dll_ShowWindow
push ebx
push esi
mov eax, dword [0x56ab08]
mov eax, dword [eax]
call fcn.0047d944
sub eax, esi
sar eax, 1
jns 0x5258ee
adc eax, 0
push eax
mov eax, dword [0x56ab08]
mov eax, dword [eax]
call fcn.0047d950
mov edx, eax
sub edx, ebx
sar edx, 1
jns 0x525906
adc edx, 0
mov eax, dword [ebp - 4]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov dl, 1
mov eax, dword [0x4d0a18]
call fcn.004d13a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x310], eax
mov dl, 1
mov eax, dword [0x4d0a18]
call fcn.004d13a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x314], eax
mov dl, 1
mov eax, dword [0x4d0a18]
call fcn.004d13a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x318], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov dl, 1
call fcn.004d2c10
mov dl, 1
mov eax, dword [0x4311a4]
call fcn.00437a78
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x525aaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046611c
lea edx, [ebp - 0x20]
call fcn.004e74d4
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.004e5d0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x310]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
call fcn.00438048
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00432a80
mov eax, dword [ebp - 0xc]
call fcn.00438048
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.00432964
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00420028
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00438048
pop edx
call fcn.00433010
mov eax, dword [ebp - 4]
call fcn.004e73e4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
neg ecx
mov edx, dword [ebp - 0x20]
neg edx
lea eax, [ebp - 0x20]
call fcn.004d11e4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2f8], 1
je 0x525a72
push 0x64
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
push eax
call sub.kernel32.dll_MulDiv
neg eax
push eax
push 0x64
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0x10]
push eax
call sub.kernel32.dll_MulDiv
mov edx, eax
neg edx
lea eax, [ebp - 0x20]
pop ecx
call fcn.004d11d8
mov eax, dword [ebp - 0xc]
call fcn.00438048
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + 0xc]
lea ecx, [ebp - 0x20]
call fcn.004e2a54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525ab6
mov eax, dword [ebp - 0xc]
call fcn.00404370
ret
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x525af6
call fcn.00404740
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14