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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x10082108
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097060]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x597dc]
cmp ecx, 2
je 0x1005079a
xor eax, eax
jmp 0x10050d15
mov ebx, dword [eax + 0x59774]
xor esi, esi
cmp ebx, esi
je 0x10050793
mov eax, dword [eax + 0x597e0]
cmp eax, 4
jne 0x100507cb
mov ecx, dword [0x1009a210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ecx, dword [0x1009a210]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.1001be00
push ebp
call fcn.10004230
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x597b0], esi
ja 0x1005081b
mov ecx, dword [0x1009a210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebx + 0xfc], esi
mov eax, dword [ebp + 0x14]
add eax, 0x597e8
lea ebx, [esp + 0x50]
mov dword [esp + 0x50], 2
call fcn.100053d0
mov dword [eax], esi
mov dword [ebp + 0x38], esi
jmp 0x10050d10
mov eax, ebp
call fcn.10001990
cmp dword [ebx + 0xa4], esi
jne 0x10050d10
cmp dword [ebx + 0xa8], esi
jne 0x10050d10
mov eax, dword [ebp + 0x14]
add eax, 0x597a8
cmp dword [eax + 8], esi
mov dword [esp + 0x48], eax
jne 0x10050856
push ebx
call fcn.10004080
jmp 0x10050d10
call fcn.100052e0
mov esi, eax
mov dword [esp + 0x4c], esi
call fcn.1005a620
fld dword [esi + 0xc]
fstp dword [esp + 0x74]
lea eax, [esp + 0x5c]
fld dword [esi + 8]
lea ecx, [esp + 0x70]
fstp dword [esp + 0x70]
fld dword [esi + 0x10]
fstp dword [esp + 0x78]
fld dword [esi + 0x14]
fstp dword [esp + 0x7c]
fld dword [ebx + 0x24]
fstp dword [esp + 0x60]
fld dword [ebx + 0x20]
fstp dword [esp + 0x5c]
fld dword [ebx + 0x28]
fstp dword [esp + 0x64]
fld dword [ebx + 0x2c]
fstp dword [esp + 0x68]
call fcn.10023f00
fst qword [esp + 0x54]
fcomp qword [0x1008b758]
fnstsw ax
test ah, 5
jp 0x10050957
fld dword [esp + 0x70]
sub esp, 0x10
fsub dword [esp + 0x6c]
fstp qword [esp + 8]
fld dword [esp + 0x84]
fsub dword [esp + 0x70]
fstp qword [esp]
call fcn.10059120
fstp dword [esp + 0x60]
add esp, 4
fld dword [0x1008b71c]
fstp dword [esp + 8]
fld dword [esp + 0x74]
fstp dword [esp + 4]
fld dword [esp + 0x5c]
fstp dword [esp]
call fcn.10022b80
add esp, 0xc
test eax, eax
jne 0x10050921
push ebx
call fcn.10004080
fld dword [esp + 0x50]
push ecx
fstp dword [esp]
call fcn.10022bd0
mov edi, dword [esp + 0x4c]
call fcn.10004d90
test eax, eax
jne 0x10050957
mov eax, edi
call fcn.10004040
cmp eax, 0x64
jne 0x10050d10
mov eax, dword [esp + 0x48]
call fcn.10005300
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, edi
call fcn.1001ca30
jmp 0x10050d10
call fcn.10064a60
test eax, eax
mov esi, dword [esp + 0x4c]
je 0x1005098d
mov eax, esi
call fcn.10003fe0
test eax, eax
jne 0x1005098d
mov al, 0
mov ecx, dword [0x1009a43c]
mov byte [ecx], al
mov edx, dword [ebp + 0x14]
push edx
mov eax, esi
call fcn.1001ca30
mov eax, dword [esp + 0x48]
call fcn.10005300
call fcn.10065520
test eax, eax
je 0x100509a0
mov al, 0
mov ecx, dword [0x1009a43c]
mov byte [ecx], al
cmp dword [ebp + 0x38], 0
mov edi, 1
jne 0x100509c7
fld dword [ebx + 0x24]
fstp dword [ebp + 0x28]
fld dword [ebx + 0x20]
fstp dword [ebp + 0x24]
fld dword [ebx + 0x28]
fstp dword [ebp + 0x2c]
mov dword [ebp + 0x34], 0x211
mov dword [ebp + 0x38], edi
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
push ecx
push eax
mov eax, ebx
call fcn.100040c0
test eax, eax
je 0x10050a70
fld qword [0x1008b708]
fld qword [esp + 0x54]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x10050a38
fld dword [esp + 0x74]
mov dword [ebp + 0x34], 0x211
fld dword [esp + 0x60]
mov dword [ebp + 0x38], edi
fsubr st(1)
fld qword [0x1008b840]
fmul st(1), st(0)
fxch st(1)
fdiv st(3)
fsubp st(2)
fxch st(1)
fstp dword [ebp + 0x28]
fld dword [esp + 0x70]
fld dword [esp + 0x5c]
fsubr st(1)
fmulp st(2)
fxch st(1)
fdivrp st(2)
fsubrp st(1)
fstp dword [ebp + 0x24]
fld dword [esp + 0x78]
fstp dword [ebp + 0x2c]
jmp 0x10050a3a
fstp st(0)
mov edx, dword [ebp + 0x34]
lea eax, [ebp + 0x24]
mov ecx, 2
mov esi, ebx
call fcn.1004a2f0
cmp eax, 2
jne 0x10050a69
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x50]
call fcn.1001ca30
mov eax, dword [esp + 0x48]
call fcn.10005300
jmp 0x10050a76
cmp eax, 1
jne 0x10050a7d
jmp 0x10050a76
push ebx
call fcn.10004080
mov dword [ebp + 0x38], 0
fld dword [esp + 0x70]
sub esp, 0x10
fsub dword [esp + 0x6c]
fstp qword [esp + 8]
fld dword [esp + 0x84]
fsub dword [esp + 0x70]
fstp qword [esp]
call fcn.10059120
fstp dword [esp + 0x60]
add esp, 4
fld dword [0x1008b7e8]
fstp dword [esp + 8]
fld dword [esp + 0x74]
fstp dword [esp + 4]
fld dword [esp + 0x5c]
fstp dword [esp]
call fcn.10022b80
add esp, 0xc
test eax, eax
jne 0x10050ade
push ebx
call fcn.10004080
fld dword [esp + 0x50]
push ecx
fstp dword [esp]
call fcn.10022bd0
push 0x11
call fcn.1004b2a0
test eax, eax
je 0x10050b13
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx]
add eax, 0x18
push eax
mov eax, dword [edx + 0x38]
mov ecx, ebx
call eax
test eax, eax
je 0x10050b13
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
call eax
test eax, eax
jle 0x10050b13
mov edx, dword [ebx]
mov eax, dword [edx + 0x58]
mov ecx, ebx
call eax
push 0x12
call fcn.1004b2a0
test eax, eax
je 0x10050b48
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx]
add eax, 0x18
push eax
mov eax, dword [edx + 0x3c]
mov ecx, ebx
call eax
test eax, eax
je 0x10050b48
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
mov ecx, ebx
call eax
test eax, eax
jle 0x10050b48
mov edx, dword [ebx]
mov eax, dword [edx + 0x5c]
mov ecx, ebx
call eax
push 0x19
call fcn.1004b2a0
test eax, eax
je 0x10050b6d
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
push 0x19
mov ecx, ebx
call eax
test eax, eax
jle 0x10050b6d
mov edx, dword [ebx]
mov eax, dword [edx + 0x64]
push 0x19
mov ecx, ebx
call eax
push 0x1a
call fcn.1004b2a0
test eax, eax
je 0x10050b92
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
push 0x1a
mov ecx, ebx
call eax
test eax, eax
jle 0x10050b92
mov edx, dword [ebx]
mov eax, dword [edx + 0x64]
push 0x1a
mov ecx, ebx
call eax
fld qword [0x1008b758]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 1
jne 0x10050793
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x3c]
cmp eax, 0x1f4
jbe 0x10050793
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x1008a904
call fcn.10001a30
lea edx, [esp + 0x50]
lea ecx, [ebp + 0x68]
push edx
mov dword [esp + 0xc4], 0
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10050c51
mov eax, esi
mov edi, dword [eax]
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x10050c51
mov ecx, esi
cmp dword [ecx + 0x14], eax
jne 0x10050c51
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x10050c51
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
je 0x10050cf7
mov eax, ebx
call fcn.100040a0
cmp eax, 0x32
lea ecx, [esp + 0x50]
push ecx
jbe 0x10050d2e
mov ecx, 0x1008a91c
call fcn.10001a30
mov dword [esp + 0xc0], 1
lea edx, [esp + 0x50]
push edx
lea ecx, [ebp + 0x68]
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10050d48
mov eax, esi
mov edi, dword [eax]
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x10050d48
mov ecx, esi
cmp dword [ecx + 0x14], eax
jne 0x10050d48
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x10050d48
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x10050d48
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [ebx]
mov eax, dword [eax + 0x14]
push edx
mov ecx, ebx
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x3c], eax
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x1008a928
call fcn.10001a30
mov dword [esp + 0xc0], 2
jmp 0x10050c7b
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x1008a910
call fcn.10001a30
lea edx, [esp + 0x50]
push edx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 3
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10050dde
mov eax, esi
mov edi, dword [eax]
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x10050dde
mov ecx, esi
cmp dword [ecx + 0x14], eax
jne 0x10050dde
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x10050dde
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
je 0x10050cf7
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x3fc], 0
je 0x10050eab
lea edx, [esp + 0x50]
push edx
mov ecx, 0x1008ab68
call fcn.10001a30
lea eax, [esp + 0x50]
push eax
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 4
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10050eab
mov ecx, esi
mov edi, dword [ecx]
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x10050eab
mov edx, esi
cmp dword [edx + 0x14], eax
jne 0x10050eab
mov eax, esi
mov esi, dword [eax]
call fcn.10064990
test eax, eax
je 0x10050eab
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x10050eab
fld qword [0x1008b798]
fcomp qword [esp + 0x54]
fnstsw ax
test ah, 1
jne 0x10050eab
call fcn.1004ad60
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
push ecx
mov ecx, ebx
call edx
jmp 0x10050d07
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008ab74
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea edi, [ebp + 0x68]
mov ecx, edi
mov dword [esp + 0xc4], 5
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10050f3f
mov eax, ebx
call fcn.100040a0
cmp eax, 0x1e
jae 0x10050f3f
cmp dword [esi + 0x14], 0
jne 0x10050f3f
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x10050f3f
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
je 0x10050cf7
mov eax, ebx
call fcn.100040a0
cmp eax, 0x50
ja 0x10051065
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x1008ac10
call fcn.10001a30
lea edx, [esp + 0x50]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 6
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10050fd4
cmp dword [esi + 0x14], 0
jne 0x10050fd4
mov eax, esi
mov esi, dword [eax]
call fcn.10064990
test eax, eax
je 0x10050fd4
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
je 0x10050e96
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008ac20
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
mov dword [esp + 0xc4], 7
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10051065
cmp dword [esi + 0x14], 0
jne 0x10051065
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x10051065
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x10051065
mov eax, ebx
call fcn.100040a0
cmp eax, 0x1e
jbe 0x10050cf7
lea ecx, [esp + 0x50]
push ecx
mov ecx, str._ba_bTwy
call fcn.10001a30
lea edx, [esp + 0x50]
push edx
mov ecx, edi
mov dword [esp + 0xc4], 8
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], edi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x10051105
mov eax, ebx
call fcn.100040a0
cmp eax, 0x46
jae 0x10051105
cmp dword [edi + 0x14], 0
jne 0x10051105
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x10051105
mov eax, edi
call fcn.1002a6c0
test eax, eax
jne 0x10051105
mov edi, dword [edi]
mov eax, ebx
call fcn.1004a950
test eax, eax
jne 0x10051105
call fcn.1004ad60
jmp 0x10050cf7
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x408], 0
je 0x100511ba
lea edx, [esp + 0x50]
push edx
mov ecx, 0x1008abac
call fcn.10001a30
lea eax, [esp + 0x50]
push eax
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 9
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x100511ba
mov eax, ebx
call fcn.1002a730
cmp eax, 0x19
jbe 0x100511ba
cmp dword [edi + 0x14], 0
jne 0x100511ba
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x100511ba
mov eax, edi
call fcn.1002a6c0
test eax, eax
jne 0x100511ba
mov eax, dword [esp + 0x4c]
call fcn.10004040
cmp eax, 0x14
ja 0x100511ba
mov edx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [edx + 0x14]
push eax
mov ecx, ebx
call edx
jmp 0x10050d07
mov edi, 0x1e60e
mov eax, ebx
call fcn.1004a950
test eax, eax
je 0x10051248
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008ac2c
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0xa
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x10051248
cmp dword [edi + 0x14], 0
jne 0x10051248
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x10051248
mov eax, edi
call fcn.1002a6c0
test eax, eax
je 0x100511a9
lea eax, [esp + 0x50]
push eax
mov ecx, str.lVup
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0xb
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x100512e7
cmp dword [ebx + 0x44], 3
jb 0x100512e7
cmp dword [esi + 0x14], 0
jne 0x100512e7
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x100512e7
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x100512e7
mov eax, dword [esp + 0x48]
mov edi, dword [eax]
mov eax, dword [esp + 0x4c]
call fcn.1005a6a0
test eax, eax
je 0x10050e96
lea eax, [esp + 0x50]
push eax
mov ecx, str._fegWLk
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0xc
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x10051371
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jae 0x10051371
cmp dword [edi + 0x14], 0
jne 0x10051371
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x10051371
mov eax, edi
call fcn.1002a6c0
test eax, eax
je 0x100511a9
push 8
mov eax, ebp
call fcn.10004c90
cmp eax, 2
jle 0x1005140d
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008abcc
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0xd
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x1005140d
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jbe 0x1005140d
cmp dword [edi + 0x14], 0
jne 0x1005140d
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x1005140d
mov eax, edi
call fcn.1002a6c0
test eax, eax
je 0x100511a9
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x404], 0
je 0x100514c0
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x1008ac44
call fcn.10001a30
lea edx, [esp + 0x50]
push edx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0xe
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x100514c0
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jae 0x100514c0
cmp dword [esi + 0x14], 0
jne 0x100514c0
mov eax, esi
mov esi, dword [eax]
call fcn.10064990
test eax, eax
je 0x100514c0
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x100514c0
mov ecx, dword [esp + 0x48]
mov edi, dword [ecx]
mov eax, ebx
call fcn.1004a950
test eax, eax
je 0x10050e96
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x404], 0
je 0x10051567
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x1008abb8
call fcn.10001a30
lea edx, [esp + 0x50]
push edx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0xf
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x10051567
mov eax, ebx
call fcn.1002a730
cmp eax, 0x28
jae 0x10051567
cmp dword [edi + 0x14], 0
jne 0x10051567
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x10051567
mov eax, edi
call fcn.1002a6c0
test eax, eax
jne 0x10051567
mov ecx, dword [edi]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebx
call edx
jmp 0x10050d07
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008abd8
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0x10
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1005160c
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jbe 0x1005160c
cmp dword [esi + 0x14], 0
jne 0x1005160c
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1005160c
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x1005160c
mov eax, dword [esp + 0x48]
mov edi, dword [eax]
mov eax, dword [esp + 0x4c]
call fcn.1005a6a0
test eax, eax
je 0x10050e96
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008ac2c
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0x11
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x10051696
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jbe 0x10051696
cmp dword [edi + 0x14], 0
jne 0x10051696
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x10051696
mov eax, edi
call fcn.1002a6c0
test eax, eax
je 0x100511a9
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008ac4c
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0x12
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x1005173b
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jbe 0x1005173b
cmp dword [esi + 0x14], 0
jne 0x1005173b
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x1005173b
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x1005173b
mov eax, dword [esp + 0x48]
mov edi, dword [eax]
mov eax, dword [esp + 0x4c]
call fcn.1005a6a0
test eax, eax
je 0x10050e96
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008ac58
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0x13
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x100517e0
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jbe 0x100517e0
cmp dword [esi + 0x14], 0
jne 0x100517e0
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x100517e0
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x100517e0
mov eax, dword [esp + 0x48]
mov edi, dword [eax]
mov eax, dword [esp + 0x4c]
call fcn.1005a6a0
test eax, eax
je 0x10050e96
lea eax, [esp + 0x50]
push eax
mov ecx, 0x1008ac64
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0x14
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x4c], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov esi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test esi, esi
je 0x10051885
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jbe 0x10051885
cmp dword [esi + 0x14], 0
jne 0x10051885
mov edx, esi
mov esi, dword [edx]
call fcn.10064990
test eax, eax
je 0x10051885
mov eax, dword [esp + 0x48]
call fcn.1002a6c0
test eax, eax
jne 0x10051885
mov eax, dword [esp + 0x48]
mov edi, dword [eax]
mov eax, dword [esp + 0x4c]
call fcn.1005a6a0
test eax, eax
je 0x10050e96
lea eax, [esp + 0x50]
push eax
mov ecx, str.yWKNkp
call fcn.10001a30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0x15
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x50], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x1005190f
mov eax, ebx
call fcn.1002a730
cmp eax, 0x14
jbe 0x1005190f
cmp dword [edi + 0x14], 0
jne 0x1005190f
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x1005190f
mov eax, edi
call fcn.1002a6c0
test eax, eax
je 0x100511a9
lea eax, [esp + 0x48]
push eax
mov ecx, 0x1008abfc
call fcn.10001a30
lea ecx, [esp + 0x48]
push ecx
lea ecx, [ebp + 0x68]
mov dword [esp + 0xc4], 0x16
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x54], esp
mov esi, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [esi], eax
call fcn.10001590
mov edi, eax
lea eax, [esp + 0x48]
mov dword [esp + 0xc0], 0xffffffff
call fcn.1001f1f0
test edi, edi
je 0x10050793
mov eax, ebx
call fcn.1002a730
cmp eax, 0xa
jbe 0x10050793
cmp dword [edi + 0x14], 0
jne 0x10050793
mov esi, dword [edi]
call fcn.10064990
test eax, eax
je 0x10050793
mov eax, edi
call fcn.1002a6c0
test eax, eax
jne 0x10050793
mov edx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [edx + 0x14]
push eax
mov ecx, ebx
call edx
jmp 0x10050d07