Function at 0x471820
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x50b148
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 0xc], 0
je 0x471ae1
mov eax, dword [ebx + 0x5140]
test eax, eax
je 0x471ae1
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00416480
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x18]
push 0x1c3
push ecx
mov dword [esp + 0x88], 0
call fcn.00433510
mov byte [esp + 0x88], 1
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
lea edi, [ebx + 0x5138]
call fcn.00404890
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4718ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471915
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x80], 2
mov ecx, dword [esp + 0x2c]
or ecx, dword [esp + 0x30]
jne 0x471945
fldz
jmp 0x471955
fild qword [esp + 0x34]
fmul qword [0x51d0f0]
fild qword [esp + 0x2c]
fdivp st(1)
cmp dword [esp + 0x28], 0
fstp dword [esp + 0x18]
jne 0x4719f3
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00416480
add esp, 0xc
mov esi, eax
lea edx, [esp + 0x1c]
push 0x1c4
push edx
mov byte [esp + 0x88], 3
call fcn.00433510
mov byte [esp + 0x88], 4
fld dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
fstp qword [esp]
mov edx, dword [esi]
mov eax, dword [eax]
push ecx
push edx
push eax
lea edi, [esp + 0x28]
call fcn.00404890
mov byte [esp + 0x94], 3
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4719e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x20]
jmp 0x471a82
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00416480
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x20]
push 0x1c5
push ecx
mov byte [esp + 0x88], 5
call fcn.00433510
mov byte [esp + 0x88], 6
fld dword [esp + 0x20]
mov edx, dword [esp + 0x30]
fstp qword [esp]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
push edx
mov edx, dword [esi]
push ecx
push edx
push eax
lea edi, [esp + 0x2c]
call fcn.00404890
mov byte [esp + 0x98], 5
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471a76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471a9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov ecx, edi
xor esi, esi
call fcn.0046d620
mov ecx, 0x510130
mov esi, 1
call fcn.0046d620
lea eax, [edi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471ae1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x49dc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x471b2d
call fcn.0048b270
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x471b17
mov edx, dword [ebx + 0x49dc]
push 5
push edx
call esi
mov eax, dword [ebx + 0x49e0]
push 5
push eax
jmp 0x471b2b
mov ecx, dword [ebx + 0x49dc]
push 0
push ecx
call esi
mov edx, dword [ebx + 0x49e0]
push 0
push edx
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x471b4b
mov eax, dword [ebx + 0x38]
push 1
push 0xffffffffffffffff
push 0x100c
push eax
call esi
jmp 0x471b4e
or eax, 0xffffffff
mov ecx, dword [ebp + 0x14]
push edi
push edi
mov dword [ecx], eax
mov edx, dword [ebx + 0x38]
push 0xb
push edx
call esi
mov eax, dword [ebx + 0x38]
push edi
push edi
push 0x1009
push eax
call esi
push 1
lea ecx, [ebx - 0xa4]
push ecx
mov dword [ebx + 0x4108], edi
mov dword [ebx + 0x410c], edi
call fcn.0046c370
cmp dword [ebx + 0x4bf8], edi
lea ecx, [ebx + 0x4bf8]
je 0x471bb3
xor eax, eax
lea esi, [esp + 0x20]
call fcn.0041b5e0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x471bb3
push 0
push 0x47c
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [ebp + 8]
cmp word [edx], 0x5c
lea edi, [ebx + 0x513c]
jne 0x471bdd
add edx, 2
jne 0x471bcb
xor eax, eax
jmp 0x471bf1
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471bd0
jmp 0x471bed
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471be2
sub eax, esi
sar eax, 1
push eax
push edx
mov eax, edi
call fcn.00401560
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x80], 7
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
je 0x471c3c
mov edx, ecx
push edx
push 0x51595c
lea edi, [esp + 0x20]
call fcn.00404890
mov esi, dword [esp + 0x20]
add esp, 8
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x80], 8
mov ecx, dword [ebx + 0x5138]
mov eax, dword [ebx + 0x5140]
mov edx, dword [eax]
push ecx
push esi
push eax
mov eax, dword [edx + 0x6c]
call eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x51659c
lea edi, [esp + 0x24]
call fcn.00404890
lea edi, [ebx + 0x43dc]
mov ebx, dword [esp + 0x24]
add esp, 0x10
mov ecx, ebx
call fcn.004b8e70
lea eax, [ebx - 0x10]
mov byte [esp + 0x80], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471cbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471ce5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10