Function at 0x422840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x422875
mov eax, dword [ebp - 4]
test byte [eax + 0x119], 4
je 0x422875
mov ecx, 0xf031
mov dl, 1
mov eax, 0x4129f0
call fcn.00408c54
call fcn.00403134
mov eax, dword [ebp - 4]
or byte [eax + 0x119], 4
xor eax, eax
push ebp
push 0x422ba2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x422b8a
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc7], 0
je 0x422a85
xor eax, eax
push ebp
push 0x4228ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov bx, 0xffdc
call fcn.00402c18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4228e5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x117], 4
jne 0x422993
mov eax, dword [ebp - 4]
cmp byte [eax + 0x116], 1
jne 0x42293b
mov eax, dword [0x48f628]
mov eax, dword [eax + 0x28]
call fcn.004146a0
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x2c]
sar ebx, 1
jns 0x42291d
adc ebx, 0
mov eax, dword [0x48f628]
mov eax, dword [eax + 0x28]
call fcn.004146e4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x30]
sar esi, 1
jns 0x42296d
adc esi, 0
jmp 0x42296d
mov eax, dword [0x48f62c]
call fcn.0042318c
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x2c]
sar ebx, 1
jns 0x422954
adc ebx, 0
mov eax, dword [0x48f62c]
call fcn.00423184
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x30]
sar esi, 1
jns 0x42296d
adc esi, 0
test ebx, ebx
jge 0x422973
xor ebx, ebx
test esi, esi
jge 0x422979
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
mov eax, dword [ebp - 4]
mov byte [eax + 0x117], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x116], 1
jne 0x422a60
mov eax, dword [ebp - 4]
cmp byte [eax + 0x112], 2
jne 0x4229ef
push 0
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
push 0x223
mov eax, dword [0x48f628]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x130]
push eax
call fcn.0040613c
push 3
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
call fcn.004061f4
jmp 0x422a3e
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x112]
mov eax, dword [eax*4 + 0x48e5d8]
push eax
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
call fcn.004061f4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
shl eax, 0x10
mov edx, dword [ebp - 4]
or eax, dword [edx + 0x2c]
push eax
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
push 0x405e24
call fcn.00405dbc
mov eax, dword [ebp - 4]
call fcn.00414ca8
push 0
push 0
push 0x234
mov eax, dword [0x48f628]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x130]
push eax
call fcn.0040613c
jmp 0x422b8a
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x112]
mov eax, dword [eax*4 + 0x48e5d8]
push eax
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
call fcn.004061f4
jmp 0x422b8a
xor eax, eax
push ebp
push 0x422aa9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov bx, 0xffdd
call fcn.00402c18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x422ac0
mov eax, dword [0x48f62c]
mov eax, dword [eax + 0x40]
cmp eax, dword [ebp - 4]
jne 0x422ad7
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00421e10
mov eax, dword [ebp - 4]
cmp byte [eax + 0x116], 1
jne 0x422af0
mov eax, dword [ebp - 4]
call fcn.00416694
jmp 0x422b8a
mov eax, dword [ebp - 4]
test byte [eax + 0x119], 8
je 0x422b1b
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
call fcn.004061c4
jmp 0x422b8a
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004181c4
mov esi, eax
call fcn.00405ee4
cmp esi, eax
jne 0x422b51
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
call fcn.00406034
test eax, eax
jne 0x422b51
mov eax, dword [ebp - 4]
call fcn.004181c4
call fcn.0041efd8
mov ebx, eax
test ebx, ebx
je 0x422b7a
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
call fcn.004061c4
push ebx
call fcn.00406154
jmp 0x422b8a
push 0
mov eax, dword [ebp - 4]
call fcn.004181c4
push eax
call fcn.004061f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ba9
mov eax, dword [ebp - 4]
and byte [eax + 0x119], 0xfb
ret