Function at 0x4d0e90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x154
cmp eax, 0x110
push ebx
push ebp
push esi
push edi
mov esi, ecx
ja 0x4d1318
je 0x4d0fc4
cmp eax, 0x4e
je 0x4d0f27
cmp eax, 0x53
je 0x4d0ef1
cmp eax, 0x7b
jne 0x4d13f3
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4d0f15
mov eax, dword [esp + 0x170]
push 0x55abb8
push 0xc
push eax
call esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x154
ret 0x10
mov eax, dword [esp + 0x174]
cmp dword [eax + 4], 1
jne 0x4d0f15
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4d0f15
mov ecx, dword [eax + 0xc]
push 0x55abb8
push 0xc
push ecx
call esi
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x154
ret 0x10
mov edx, dword [esp + 0x174]
cmp dword [edx + 8], 0xfffffdd9
jne 0x4d13f3
mov eax, dword [esp + 0x168]
push 0x28b
push eax
call dword [0x56dda0]
push 0
push 0
push 0x130b
push eax
call dword [0x56df08]
mov edi, eax
mov edx, dword [esi + 4]
mov ecx, edi
mov ebx, dword [0x56dd28]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 5
push ecx
push edx
call ebx
mov eax, edi
mov ecx, dword [esi + 8]
dec eax
neg eax
sbb eax, eax
and al, 0xfb
add eax, 5
push eax
push ecx
call ebx
xor edx, edx
mov eax, dword [esi + 0xc]
cmp edi, 2
setne dl
dec edx
and edx, 5
push edx
push eax
call ebx
xor ecx, ecx
mov edx, dword [esi + 0x10]
cmp edi, 3
setne cl
dec ecx
and ecx, 5
push ecx
push edx
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x154
ret 0x10
mov ebp, dword [esp + 0x174]
mov edi, dword [esp + 0x168]
mov dword [esi + 0x14], ebp
push edi
mov eax, dword [ebp + 0x54]
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [ebp + 0x248], edi
call fcn.004d1440
test eax, eax
jne 0x4d1005
push 2
push edi
call dword [0x56dd50]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x154
ret 0x10
push 0x28b
push edi
call dword [0x56dda0]
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x64]
mov ebx, eax
mov dword [esp + 0x28], 9
mov eax, dword [edx + 0x30]
push 0x100
push ecx
push 0x438
push eax
call dword [0x56deac]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x64]
push edx
push 0
push 0x1307
push ebx
mov dword [esp + 0x44], ecx
call dword [0x56df08]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x64]
push 0x100
push eax
mov edx, dword [ecx + 0x30]
push 0x439
push edx
call dword [0x56deac]
lea ecx, [esp + 0x28]
lea eax, [esp + 0x64]
push ecx
push 1
push 0x1307
push ebx
mov dword [esp + 0x44], eax
call dword [0x56df08]
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x64]
push 0x100
push edx
mov ecx, dword [eax + 0x30]
push 0x43a
push ecx
call dword [0x56deac]
lea eax, [esp + 0x28]
lea edx, [esp + 0x64]
push eax
push 2
push 0x1307
push ebx
mov dword [esp + 0x44], edx
call dword [0x56df08]
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x64]
push 0x100
push ecx
mov eax, dword [edx + 0x30]
push 0x43b
push eax
call dword [0x56deac]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x64]
push edx
push 3
push 0x1307
push ebx
mov dword [esp + 0x44], ecx
call dword [0x56df08]
push ebp
push 0x4dc320
push edi
push 0xa6e
push 0xfffffffffffffffa
push edi
call dword [0x56def4]
push eax
call dword [0x56dd60]
push ebp
mov dword [esi + 4], eax
push 0x4da370
push edi
push 0xa6c
push 0xfffffffffffffffa
push edi
call dword [0x56def4]
push eax
call dword [0x56dd60]
push ebp
push 0x4d9660
push edi
push 0xa6a
push 0xfffffffffffffffa
push edi
mov dword [esi + 8], eax
call dword [0x56def4]
push eax
call dword [0x56dd60]
push ebp
push 0x4d8d30
push edi
push 0x7e4
push 0xfffffffffffffffa
push edi
mov dword [esi + 0xc], eax
call dword [0x56def4]
push eax
call dword [0x56dd60]
push ebp
push 0x4d7bf0
push edi
push 0x7e1
push 0xfffffffffffffffa
push edi
mov dword [esi + 0x10], eax
call dword [0x56def4]
push eax
call dword [0x56dd60]
mov ecx, esi
mov dword [esi], eax
call fcn.004d1610
mov ecx, dword [esi + 4]
mov ebp, dword [0x56de60]
lea eax, [esp + 0x18]
push eax
push ecx
call ebp
mov eax, dword [esi]
lea edx, [esp + 0x44]
push edx
push eax
call ebp
lea ecx, [esp + 0x54]
push ecx
push ebx
call ebp
lea edx, [esp + 0x54]
push edx
push 0
push 0x1328
push ebx
call dword [0x56df08]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
push ebx
mov dword [esp + 0x1c], ecx
call dword [0x56de14]
lea eax, [esp + 0x10]
push eax
push edi
call dword [0x56de78]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0x20]
push 4
push ecx
sub edx, ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [0x56dd1c]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push 0
push edx
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub eax, ecx
mov ecx, dword [esp + 0x20]
push 4
sub ecx, edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push 0
push ecx
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edx, eax
mov eax, dword [esp + 0x20]
push 4
push edx
mov edx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
push 0
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
sub ecx, ebp
push 4
push ecx
mov ecx, dword [esp + 0x20]
sub edx, ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push 0
push edx
call ebx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
sub eax, ecx
mov ecx, dword [esp + 0x4c]
push 4
sub ecx, edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
add ecx, eax
push edx
mov edx, dword [esi]
push ecx
push 0
push edx
call ebx
push 5
mov eax, dword [esi + 4]
mov ebx, dword [0x56dd28]
push eax
call ebx
mov ecx, dword [esi]
push 5
push ecx
call ebx
push 1
push 0x290
push edi
call dword [0x56de54]
push 0x28b
push edi
call dword [0x56dda0]
push eax
call dword [0x56dd34]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x154
ret 0x10
mov edi, dword [esp + 0x168]
cmp eax, 0x111
je 0x4d1349
cmp eax, 0x406
jne 0x4d13f3
mov edx, dword [esp + 0x174]
push edx
push 1
push edi
call dword [0x56dda0]
push eax
call dword [0x56df20]
mov eax, dword [esp + 0x170]
mov ecx, eax
shr ecx, 0x10
jne 0x4d13f3
cmp ax, 1
jne 0x4d139e
push 0x290
push edi
call dword [0x56dd98]
mov edx, dword [esi + 0x14]
mov dword [edx + 0x48], eax
mov ecx, dword [esi + 0x14]
call fcn.004d6d30
mov ecx, dword [esi + 0x14]
call fcn.004d6e60
push 1
push edi
call dword [0x56dd50]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x154
ret 0x10
cmp ax, 2
jne 0x4d13d9
mov eax, dword [esi + 0x14]
mov dword [eax + 0x48], 0
mov ecx, dword [esi + 0x14]
call fcn.004d6d30
mov ecx, dword [esi + 0x14]
call fcn.004d6e60
push 2
push edi
call dword [0x56dd50]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x154
ret 0x10
cmp ax, 9
jne 0x4d13f3
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4d13f3
push 0x834
push 1
push edi
call esi
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x154
ret 0x10