Function at 0x4d1c24
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff14
push esi
xor ecx, ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d2867
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004852b8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
je 0x4d1c8d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 8]
mov si, 0xfff6
call fcn.00403b30
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
cmp eax, 0x3e8
jbe 0x4d1cbe
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
inc dword [eax + 8]
mov eax, dword [0x5328dc]
cmp dword [eax], 0
je 0x4d283c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [0x5327bc]
cmp eax, dword [edx]
jne 0x4d283c
mov eax, dword [0x5328c8]
cmp byte [eax + 0xaf], 1
jne 0x4d1f01
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x62588]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d1f01
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x62588]
mov edx, dword [ebp - 0x10]
call fcn.00418724
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x30], 0
jne 0x4d1ef5
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x12], 0x32
je 0x4d1ef5
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x124]
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0x124]
cdq
xor eax, edx
sub eax, edx
cmp eax, 9
jge 0x4d1ef5
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x103
call fcn.0048b5ac
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x22], 0
jbe 0x4d1da6
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xbc]
sub eax, 0x25
mov dword [ebp - 0x14], eax
jmp 0x4d1db5
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xbc]
sub eax, 0xa
mov dword [ebp - 0x14], eax
mov eax, dword [0x532b5c]
cmp byte [eax], 0
je 0x4d1e03
mov eax, dword [0x532b6c]
cmp byte [eax], 0
je 0x4d1de7
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0x220
jle 0x4d1e03
cmp dword [ebp - 0x14], 0x100
jl 0x4d1f01
jmp 0x4d1e03
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0x2a0
jle 0x4d1e03
cmp dword [ebp - 0x14], 0x80
jl 0x4d1f01
cmp dword [ebp - 0x30], 0
je 0x4d1e49
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x30]
call fcn.00485344
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x30]
call fcn.004855a4
sar eax, 1
jns 0x4d1e33
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00484d3c
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
mov edx, 0x104
call fcn.0048b5ac
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4d1ef5
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x30]
call fcn.00485344
mov eax, dword [ebp - 0x24]
cmp word [eax + 0x6a], 0
jbe 0x4d1ec6
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0xd0], eax
fild dword [ebp - 0xd0]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x6a]
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fdivp st(1)
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x66]
mov dword [ebp - 0xd8], eax
fild dword [ebp - 0xd8]
fmulp st(1)
call fcn.00402bf8
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 1
mov eax, dword [ebp - 0x30]
call fcn.004855a4
sar eax, 1
jns 0x4d1edf
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00484d3c
inc dword [ebp - 0x10]
dec dword [ebp - 0x40]
jne 0x4d1d1c
push 1
mov eax, dword [ebp - 8]
call fcn.0048530c
call fcn.00423408
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [0x5328c8]
cmp byte [eax + 0xbe], 1
jne 0x4d2071
mov eax, dword [0x532964]
cmp byte [eax + 0x13], 0
jbe 0x4d2071
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x62588]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d2167
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x62588]
mov edx, dword [ebp - 0x10]
call fcn.00418724
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4d2060
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x89], 0
je 0x4d2060
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x30], 0
jne 0x4d2060
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0
je 0x4d2060
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xbc], 0
je 0x4d2060
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x40]
call fcn.0040471c
mov eax, dword [0x5328c8]
cmp byte [eax + 0xc0], 1
jne 0x4d1fe6
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
jmp 0x4d1fef
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x38], eax
push ebp
mov eax, dword [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004d1b34
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x44]
call fcn.0040471c
push ebp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x4c]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [ebp - 0x20]
shl eax, 2
lea eax, [eax + eax*2]
add ecx, eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004d1b34
pop ecx
inc dword [ebp - 0x10]
dec dword [ebp - 0x40]
jne 0x4d1f5b
jmp 0x4d2167
mov eax, dword [0x5329a4]
cmp dword [eax], 0
je 0x4d2167
mov edx, dword [0x5329a4]
mov edx, dword [edx]
mov eax, dword [0x5327bc]
mov eax, dword [eax]
call fcn.004c9fb0
test al, al
je 0x4d2167
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x5329a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x40]
call fcn.0040471c
mov eax, dword [0x5328c8]
cmp byte [eax + 0xc0], 1
jne 0x4d20d0
mov eax, dword [0x5329a4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
jmp 0x4d20dd
mov eax, dword [0x5329a4]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x38], eax
push ebp
mov eax, dword [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x5329a4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [0x5329a4]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004d1b34
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x5329a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
call fcn.0040471c
push ebp
mov eax, dword [0x5329a4]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x5329a4]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [ebp - 0x20]
shl eax, 2
lea eax, [eax + eax*2]
add ecx, eax
mov eax, dword [0x5329a4]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004d1b34
pop ecx
mov eax, dword [0x532944]
cmp byte [eax], 0
je 0x4d2220
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x5328dc]
mov edx, dword [edx]
mov edx, dword [edx + 0x40]
call fcn.0040471c
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
push ebp
mov eax, dword [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004d1b34
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x5328dc]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
call fcn.0040471c
push ebp
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
push eax
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add ecx, 0x1e
mov eax, dword [ebp - 0x20]
shl eax, 2
lea eax, [eax + eax*2]
add ecx, eax
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov edx, dword [eax + 0xb8]
mov eax, dword [ebp - 8]
call fcn.004d1b34
pop ecx
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x62588]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d265e
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x5327bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x62588]
mov edx, dword [ebp - 0x10]
call fcn.00418724
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x22], 0
jbe 0x4d226e
mov dword [ebp - 0x14], 0xffffffe8
jmp 0x4d2273
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
cmp word [eax + 0x66], 0
jbe 0x4d2455
mov eax, dword [0x5328dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x124]
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0x124]
cdq
xor eax, edx
sub eax, edx
cmp eax, 9
jge 0x4d2455
mov eax, dword [0x5328c8]
cmp byte [eax + 0xaf], 1
jne 0x4d2455
mov eax, dword [0x5328c8]
cmp byte [eax + 0xb0], 1
jne 0x4d2455
push 1
mov eax, dword [ebp - 8]
call fcn.0048530c
call fcn.00423408
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [0x5328c8]
cmp byte [eax + 0xb7], 1
jne 0x4d234b
mov eax, dword [0x5328dc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
je 0x4d234b
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x12], 0
jne 0x4d234b
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x66]
call fcn.00408d74
push dword [ebp - 0xdc]
push 0x4d287c
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x6a]
call fcn.00408d74
push dword [ebp - 0xe0]
mov eax, dword [ebp - 0x24]
push dword [eax + 0x48]
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00404a04
jmp 0x4d238d
lea edx, [ebp - 0xe4]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x66]
call fcn.00408d74
push dword [ebp - 0xe4]
push 0x4d287c
lea edx, [ebp - 0xe8]
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 0x6a]
call fcn.00408d74
push dword [ebp - 0xe8]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404a04
mov eax, dword [0x532b5c]
cmp byte [eax], 0
je 0x4d23f5
mov eax, dword [0x532b6c]
cmp byte [eax], 0
je 0x4d23cc
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0x220
jle 0x4d23f5
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xbc]
sub eax, 0x19
add eax, dword [ebp - 0x14]
cmp eax, 0x100
jl 0x4d265e
jmp 0x4d23f5
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xb8], 0x2a0
jle 0x4d23f5
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xbc]
sub eax, 0x19
add eax, dword [ebp - 0x14]
cmp eax, 0x80
jl 0x4d265e
mov eax, dword [ebp - 8]
call fcn.0048530c
mov eax, dword [eax + 0xc]
mov edx, dword [0x5328c8]
mov edx, dword [edx + 0xfb0]
call fcn.0042217c
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
call fcn.0048530c
mov edx, dword [ebp - 0x28]
call fcn.00423268
sar eax, 1
jns 0x4d242c
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
push edx
mov eax, dword [ebp - 8]
call fcn.0048530c
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0xbc]
sub ecx, 0x19
add ecx, dword [ebp - 0x14]
pop edx
call fcn.00423198
mov eax, dword [ebp - 8]
call fcn.0048530c
mov eax, dword [eax + 0xc]
mov edx, 0xffffff
call fcn.0042217c
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x8c], 0
je 0x4d2652
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x24]
sub eax, dword [edx + 0xb4]
cmp eax, 0xfa0
jae 0x4d2645
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
dec eax
test eax, eax
jl 0x4d2652
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x532b5c]
cmp byte [eax], 0
je 0x4d2574
mov eax, dword [0x532b6c]
cmp byte [eax], 0
je 0x4d2521
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0xa0]
sar eax, 1
jns 0x4d24dc
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
cmp edx, 0x220
jle 0x4d2574
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
shl eax, 4
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xbc]
sub edx, eax
imul eax, dword [ebp - 0xc], 0xe
add edx, eax
add edx, dword [ebp - 0x14]
cmp edx, 0x100
jl 0x4d2652
jmp 0x4d2574
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0xa0]
sar eax, 1
jns 0x4d2535
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
cmp edx, 0x2a0
jle 0x4d2574
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
shl eax, 4
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xbc]
sub edx, eax
imul eax, dword [ebp - 0xc], 0xe
add edx, eax
add edx, dword [ebp - 0x14]
cmp edx, 0x80
jl 0x4d2652
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x30], 0
je 0x4d25db
push 0x808080
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x8c]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
shl eax, 4
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0xbc]
sub ecx, eax
imul eax, dword [ebp - 0xc], 0xe
add ecx, eax
add ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0xa0]
sar eax, 1
jns 0x4d25c6
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.00512754
jmp 0x4d2637
push 0xffffff
push 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x8c]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc0]
shl eax, 4
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + 0xbc]
sub ecx, eax
imul eax, dword [ebp - 0xc], 0xe
add ecx, eax
add ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0xa0]
sar eax, 1
jns 0x4d2624
adc eax, 0
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xb8]
sub edx, eax
mov eax, dword [ebp - 8]
call fcn.00512754
inc dword [ebp - 0xc]
dec dword [ebp - 0x44]
jne 0x4d24b0
jmp 0x4d2652
mov eax, dword [ebp - 0x24]
add eax, 0x8c
call fcn.00404684
inc dword [ebp - 0x10]
dec dword [ebp - 0x40]
jne 0x4d2244
mov eax, dword [0x5328c8]
cmp byte [eax + 0xa27], 1
je 0x4d267e
mov eax, dword [0x5328c8]
cmp byte [eax + 0xa29], 1
jne 0x4d278a
mov eax, dword [0x532e04]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4d278a
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x532e04]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00418724
mov dword [ebp - 0x34], eax
mov eax, dword [0x5328c8]
mov eax, dword [eax + 0xf9c]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x5328c8]
cmp byte [eax + 0xa27], 0
jne 0x4d26d7
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x2d], 0
je 0x4d277e
cmp dword [ebp - 0x34], 0
je 0x4d277e
mov eax, dword [0x5328c8]
cmp byte [eax + 0xa29], 1
jne 0x4d2706
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x2d], 0
je 0x4d2706
mov eax, dword [0x5328c8]
mov eax, dword [eax + 0xf98]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x5328c8]
cmp byte [eax + 0xa25], 1
jne 0x4d271d
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x2c], 0
jne 0x4d272b
mov eax, dword [0x5328c8]
cmp byte [eax + 0xa25], 1
je 0x4d277e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 2]
mov eax, dword [ebp - 0x34]
movzx edx, word [eax]
mov eax, dword [0x5327bc]
mov eax, dword [eax]
call fcn.004c9498
mov eax, dword [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0xec]
mov edx, dword [ebp - 0x34]
add edx, 0xc
call fcn.004048e8
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 0xa
mov edx, dword [ebp - 0x18]
sub edx, 0x14
mov eax, dword [ebp - 8]
call fcn.00512880
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x4d269c
mov eax, dword [0x532c54]
test byte [eax], 4
je 0x4d27ac
push 0xffffff
push 0
push 0x4d2888
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00512754
mov eax, dword [ebp - 8]
call fcn.0048530c
call fcn.00484378
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, 1
shr eax, cl
mov edx, dword [0x532c54]
and eax, dword [edx]
je 0x4d2833
mov edx, dword [ebp - 0xc]
add edx, 0x96
mov eax, dword [0x532d5c]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.0048b5ac
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4d2833
mov eax, dword [ebp - 0x30]
call fcn.004855a4
add dword [ebp - 0x10], eax
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0x30]
call fcn.00485344
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 1
mov edx, 0x320
sub edx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.00484d3c
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jne 0x4d27c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d286e
lea eax, [ebp - 0xec]
mov edx, 5
call fcn.004046a8
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004046a8
ret