Function at 0x4c424c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
mov byte [0x50c7e0], 1
mov eax, esi
mov edx, dword [0x4544e0]
call fcn.00403a8c
test al, al
je 0x4c429e
push 0
mov dx, 4
xor eax, eax
call fcn.00407980
push eax
mov eax, dword [0x50c9cc]
mov eax, dword [eax]
push eax
mov eax, esi
call fcn.004453d4
push eax
call fcn.00407774
mov ebx, eax
jmp 0x4c42a0
xor ebx, ebx
test ebx, ebx
je 0x4c42bc
cmp dword [ebx + 0x248], 0
je 0x4c42bc
call fcn.004c6464
test al, al
je 0x4c42bc
mov byte [ebp - 0x6d], 1
jmp 0x4c42c0
mov byte [ebp - 0x6d], 0
call fcn.004c6464
test al, al
je 0x4c4b41
mov eax, esi
mov edx, dword [0x4544e0]
call fcn.00403a8c
test al, al
je 0x4c4b41
cmp dword [ebx + 0x248], 0
je 0x4c4325
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x4c4305
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebx + 0xb0], eax
jmp 0x4c4325
xor edx, edx
xor eax, eax
call fcn.004cebb8
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
call fcn.004f5b00
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
call fcn.004cebb8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423b6c
push 0
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.004c1dec
cmp dword [ebp - 0x1c], 0
je 0x4c4dee
cmp dword [ebx + 0x248], 0
jne 0x4c43b0
push 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00417c2c
lea edx, [ebp - 0xac]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.004b5aa8
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423ee4
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x74], 0x11b
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x84]
xor edx, edx
xor eax, eax
call fcn.00417c04
cmp dword [ebp - 0x10], 0
jle 0x4c4404
mov byte [ebp - 0x52], 0
jmp 0x4c440a
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x51], 1
mov eax, dword [ebx + 0x248]
test eax, eax
je 0x4c48a4
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x38], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x248]
call fcn.004ffc78
cmp byte [ebx + 0x1ec], 0
je 0x4c4471
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.004faeec
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x68], eax
jmp 0x4c456a
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.0040767c
test eax, eax
je 0x4c4522
mov eax, dword [ebx + 0x54]
call fcn.004d2528
mov eax, dword [eax + 0x90]
mov di, word [eax + 0x2e]
mov eax, dword [ebx + 0x54]
call fcn.004d2528
mov eax, dword [eax + 0x90]
cmp di, word [eax + 0x2c]
je 0x4c4522
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.004faeec
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x248]
call fcn.004e94a4
add edi, eax
xor edx, edx
mov eax, ebx
call fcn.004eaf18
sub edi, eax
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004e943c
sub edi, eax
mov eax, dword [ebx + 0x54]
call fcn.004d2528
mov eax, dword [eax + 0x90]
movsx eax, word [eax + 0x2c]
add edi, eax
mov eax, dword [ebx + 0x54]
call fcn.004d2528
mov eax, dword [eax + 0x90]
movsx eax, word [eax + 0x2e]
sub edi, eax
mov dword [ebp - 0x68], edi
jmp 0x4c456a
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.004faeec
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x248]
call fcn.004e94a4
add edi, eax
xor edx, edx
mov eax, ebx
call fcn.004eaf18
sub edi, eax
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004e943c
sub edi, eax
mov dword [ebp - 0x68], edi
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004e943c
push eax
mov eax, dword [ebx + 0x248]
call fcn.004e94c4
mov edi, eax
pop eax
sub edi, eax
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.004faeec
add edi, dword [ebp - 0xac]
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.004453d4
push eax
call fcn.004075e4
mov edx, dword [ebp - 0x9c]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.0043e314
mov edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.0043e338
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x7c]
call fcn.0043e360
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x78]
call fcn.0043e384
push 3
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.0040755c
mov edi, eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x6c]
push eax
push edi
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.0040780c
push 0
call fcn.004074bc
mov dword [ebp - 0x60], eax
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423fec
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
mov eax, dword [0x50c9b8]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.00407844
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call fcn.004cebb8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00417c2c
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
call fcn.004284b8
call fcn.00423fec
xor ecx, ecx
pop edx
call fcn.004ca010
cmp dword [ebp - 0x10], 0
jle 0x4c47c9
push ebp
call fcn.004c3ed4
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4c47c3
push ebp
call fcn.004c4034
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x58]
call fcn.004284b8
call fcn.00423fec
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
mov eax, dword [0x50c9b8]
mov eax, dword [eax]
call eax
push 0
xor eax, eax
mov al, byte [ebp - 0x52]
mov edx, dword [ebp - 0xc]
sub edx, eax
lea edx, [edx + edx*2]
xor eax, eax
call fcn.0042a708
mov edx, eax
mov eax, 0xff
call fcn.0042a644
push eax
mov eax, dword [ebp - 0x88]
call fcn.004453d4
mov edx, dword [ebp - 0x8c]
pop ecx
call fcn.004e84a0
push ebp
call fcn.004c41f0
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x4c47ba
push 0xc
call fcn.00406fe4
cmp edi, dword [ebp - 0x10]
jle 0x4c4722
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x60]
push eax
push 0
call fcn.0040774c
mov byte [0x50c7e0], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4c47f2
mov dl, byte [ebp - 0xc]
call fcn.0045bf2c
push 0
push 1
push 0xb
mov eax, esi
call fcn.004453d4
push eax
call fcn.00407774
push 0x585
push 0
push 0
mov eax, esi
call fcn.004453d4
push eax
call fcn.00407724
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.004ffb24
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.00407824
mov eax, dword [ebp - 0x74]
or eax, 4
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x6c]
push eax
push 0
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004453d4
push eax
call fcn.0040780c
mov cl, 0xff
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.004fed50
lea eax, [ebp - 0x8c]
call fcn.0040e7e8
lea eax, [ebp - 0x88]
call fcn.0040e7e8
jmp 0x4c4b2c
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.004453d4
push eax
call fcn.004075e4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4547e4]
call fcn.004572c4
mov edi, eax
mov dword [0x50c7dc], edi
mov dword [edi + 0xc], 0xffffff9e
xor edx, edx
mov eax, edi
call fcn.00458ab0
mov edx, dword [esi + 0x40]
mov eax, dword [0x50c7dc]
call fcn.0043e314
mov edx, dword [esi + 0x44]
mov eax, dword [0x50c7dc]
call fcn.0043e338
mov edx, dword [esi + 0x48]
mov eax, dword [0x50c7dc]
call fcn.0043e360
mov edx, dword [esi + 0x4c]
mov eax, dword [0x50c7dc]
call fcn.0043e384
push 0xffffffffffffffec
mov eax, esi
call fcn.004453d4
push eax
call fcn.004075d4
and eax, 8
cmp eax, 8
jne 0x4c493a
mov dl, 3
mov eax, dword [0x50c7dc]
call fcn.00458dac
or edi, 0xffffffff
jmp 0x4c494f
push 3
mov eax, dword [ebx + 0x22c]
call fcn.004453d4
push eax
call fcn.004075c4
mov edi, eax
mov eax, dword [ebp - 0x74]
and eax, 0xfffffffd
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [0x50c7dc]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [0x50c7dc]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
call fcn.0040780c
push 0
call fcn.004074bc
mov dword [ebp - 0x60], eax
push 0xffffffffffffffec
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
call fcn.004075d4
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
call fcn.004077fc
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423fec
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
mov eax, dword [0x50c9b8]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
call fcn.00407844
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call fcn.004cebb8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00417c2c
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
call fcn.004284b8
call fcn.00423fec
xor ecx, ecx
pop edx
call fcn.004ca010
cmp dword [ebp - 0x10], 0
jle 0x4c4ad0
push ebp
call fcn.004c3ed4
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4c4aca
push ebp
call fcn.004c4034
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x58]
call fcn.004284b8
call fcn.00423fec
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
mov eax, dword [0x50c9b8]
mov eax, dword [eax]
call eax
push ebp
call fcn.004c41f0
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x4c4ac5
push 0xc
call fcn.00406fe4
cmp edi, dword [ebp - 0x10]
jle 0x4c4a6b
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x60]
push eax
push 0
call fcn.0040774c
mov byte [0x50c7e0], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4c4af9
mov dl, byte [ebp - 0xc]
call fcn.0045bf2c
push 0
push 1
push 0xb
mov eax, esi
call fcn.004453d4
push eax
call fcn.00407774
push 0x585
push 0
push 0
mov eax, esi
call fcn.004453d4
push eax
call fcn.00407724
mov eax, 0x50c7dc
call fcn.0040e7e8
lea eax, [ebp - 0x58]
call fcn.0040e7e8
lea eax, [ebp - 0x1c]
call fcn.0040e7e8
jmp 0x4c4dee
cmp dword [0x50c7dc], 0
jne 0x4c4b51
mov eax, esi
call fcn.004c3dbc
cmp dword [0x50c7dc], 0
je 0x4c4dee
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004cebb8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423b6c
push 0
push 0
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.004c1dec
cmp dword [ebp - 0x1c], 0
je 0x4c4dee
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423ee4
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004cebb8
mov dword [ebp - 0x5c], eax
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x6d], 0
jne 0x4c4bfb
test ebx, ebx
je 0x4c4bfb
mov edi, ebx
mov eax, edi
call fcn.004e9e5c
cmp dword [0x50c7dc], 0
je 0x4c4dee
push 0
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004ea26c
push eax
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
call fcn.00407824
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
call fcn.004075cc
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x10], 0
jle 0x4c4ccd
mov eax, 0xff
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov ebx, 0xff
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4c4ccd
push 0
mov edx, ebx
xor eax, eax
call fcn.0042a708
push eax
lea ecx, [ebp - 0x1c]
mov edx, 0x50c7f0
lea eax, [ebp - 0x5c]
call fcn.004ce918
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
call fcn.004284b8
call fcn.00423fec
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call fcn.0040704c
mov eax, dword [0x50cc10]
cmp dword [eax], 0
je 0x4c4cae
push 0
mov dx, 3
xor eax, eax
call fcn.00407980
push eax
mov eax, dword [0x50c9cc]
mov eax, dword [eax]
push eax
mov eax, dword [0x50cc10]
mov eax, dword [eax]
call fcn.004453d4
push eax
call fcn.00407774
inc edi
sub ebx, dword [ebp - 0x64]
cmp edi, dword [ebp - 0x10]
jg 0x4c4ccd
cmp dword [ebp - 0x10], 0
jle 0x4c4cc4
push 0xc
call fcn.00406fe4
cmp edi, dword [ebp - 0x10]
jle 0x4c4c34
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004284b8
call fcn.00423fec
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call fcn.0040704c
mov eax, dword [0x50cc10]
cmp dword [eax], 0
je 0x4c4d2b
push 0
mov dx, 3
xor eax, eax
call fcn.00407980
push eax
mov eax, dword [0x50c9cc]
mov eax, dword [eax]
push eax
mov eax, dword [0x50cc10]
mov eax, dword [eax]
call fcn.004453d4
push eax
call fcn.00407774
mov byte [0x50c7e0], 0
cmp byte [esi + 0x57], 0
je 0x4c4db6
push 0
push 1
push 0xb
mov eax, esi
call fcn.004453d4
push eax
call fcn.00407774
mov eax, dword [0x50caa4]
cmp dword [eax], 6
jl 0x4c4d6b
push 0x585
push 0
push 0
mov eax, esi
call fcn.004453d4
push eax
call fcn.00407724
mov eax, esi
mov edx, dword [0x4544e0]
call fcn.00403a8c
test al, al
je 0x4c4d97
push 0xffffffffffffffec
mov eax, esi
call fcn.004453d4
push eax
call fcn.004075d4
and eax, 0x80000
cmp eax, 0x80000
je 0x4c4db6
push 0x9c
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
call fcn.0040780c
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x50c7dc]
call fcn.004453d4
push eax
call fcn.0040774c
mov eax, 0x50c7dc
call fcn.0040e7e8
lea eax, [ebp - 0x5c]
call fcn.0040e7e8
mov eax, 0x50c7f0
call fcn.0040e7e8
lea eax, [ebp - 0x1c]
call fcn.0040e7e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4