Function at 0x64897c
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x24
push 0
push 0
dec ecx
jne 0x648985
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 8]
call fcn.004052f0
xor eax, eax
push ebp
push 0x649adf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0064fe38
cmp dword [ebp - 8], 0
jne 0x6489cf
lea eax, [ebp - 8]
mov edx, 0x649af8
call fcn.00404ec8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0xffffffff
mov byte [ebp - 0x27], 0
xor eax, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
sete byte [ebp - 0x25]
cmp byte [ebp - 0x25], 0
je 0x648a15
mov dl, 1
mov eax, dword [0x5b5e10]
call fcn.00403f74
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
cmp byte [ebp - 0x25], 0
je 0x648a3c
push 5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00659be4
mov ecx, eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0064a458
test al, al
jne 0x648a40
xor eax, eax
jmp 0x648a42
mov al, 1
mov byte [ebp - 0x35], al
xor eax, eax
push ebp
push 0x649917
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x80]
call fcn.0041fbec
dec eax
jl 0x648a9c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x80]
xor edx, edx
call fcn.00669564
cmp byte [eax + 0x5d], 0
jne 0x648a9c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x80]
xor edx, edx
call fcn.00669564
cmp dword [eax + 0x2c], 0x1fffffff
jne 0x648a9c
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 8
je 0x648aa0
xor eax, eax
jmp 0x648aa2
mov al, 1
mov byte [ebp - 0x26], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x649705
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0065874c
mov ebx, eax
mov eax, ebx
call fcn.0067c39c
test al, al
jne 0x6491eb
cmp dword [ebp - 0xc], 0
jle 0x648aff
cmp dword [ebp - 0x20], 0
jge 0x648aff
cmp dword [ebp - 0x34], 0
jne 0x648aff
xor edx, edx
mov eax, edi
call fcn.00677f30
mov eax, ebx
call fcn.0067c3ec
test al, al
je 0x648b61
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
mov cl, 1
xor edx, edx
mov eax, ebx
call fcn.006483f4
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
call fcn.0063b2cc
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x649b14
call fcn.0040b918
mov edx, dword [ebp - 0x44]
mov eax, edi
call fcn.00677f0c
jmp 0x6491eb
cmp dword [ebp - 0x34], 0
je 0x648baa
mov edx, 0x649b28
mov eax, edi
call fcn.00677f30
push 0
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0xc]
call fcn.0064a528
mov edx, dword [ebp - 0x60]
mov eax, edi
call fcn.00677f0c
jmp 0x648c35
cmp dword [ebp - 0x20], 0
jl 0x648c35
cmp byte [ebp - 0x27], 0
je 0x648bc8
mov edx, 0x649b38
mov eax, edi
call fcn.00677f30
jmp 0x648bff
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x20]
call fcn.006488c8
pop ecx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x649b48
call fcn.0040b918
mov edx, dword [ebp - 0x64]
mov eax, edi
call fcn.00677f30
mov byte [ebp - 0x27], 0
push 0
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0xc]
call fcn.0064a528
mov edx, dword [ebp - 0x74]
mov eax, edi
call fcn.00677f0c
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x84]
call fcn.00670d84
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x28]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
cmp dword [eax], 0x1fffffff
jne 0x648c70
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x28]
mov dword [edx], eax
mov eax, dword [ebx + 8]
sub eax, 0xfffffff5
je 0x648c8d
sub eax, 0xa
jne 0x6490c0
mov dword [ebp - 0x20], 0xffffffff
jmp 0x6491eb
mov edx, dword [ebp - 0x2c]
mov esi, ebx
mov eax, esi
call fcn.00631c30
test eax, eax
je 0x648fd0
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 2
je 0x648e49
push 1
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0xc]
call fcn.0064a528
mov edx, dword [ebp - 0x78]
mov eax, edi
call fcn.00677f0c
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x648cf0
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 8
je 0x648cfd
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 4
je 0x648d9d
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x98]
mov eax, esi
call fcn.006488c8
pop ecx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x9c]
push eax
mov cl, 1
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00648624
pop ecx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0xb
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00631c30
lea ecx, [ebp - 0xa0]
mov edx, dword [ebp - 0x2c]
call fcn.00671760
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0xb
lea edx, [ebp - 0x94]
mov ecx, 2
mov eax, 0x649b58
call fcn.0040b918
mov edx, dword [ebp - 0x7c]
mov eax, edi
call fcn.00677f0c
jmp 0x648e3e
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0xa8]
mov eax, esi
call fcn.006488c8
pop ecx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0xb
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xac]
push eax
mov cl, 1
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00648740
pop ecx
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0xb
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00631c30
lea ecx, [ebp - 0xb0]
mov edx, dword [ebp - 0x2c]
call fcn.00671760
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0xb
lea edx, [ebp - 0x94]
mov ecx, 2
mov eax, 0x649b74
call fcn.0040b918
mov edx, dword [ebp - 0xa4]
mov eax, edi
call fcn.00677f0c
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
jmp 0x6491eb
mov eax, dword [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, edi
mov eax, esi
call fcn.00633114
push 1
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0xc]
call fcn.0064a528
mov edx, dword [ebp - 0xb4]
mov eax, edi
call fcn.00677f0c
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
call fcn.00631c30
call fcn.00671748
test al, al
je 0x648f0c
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 0x20
jne 0x648f0c
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp + 8]
mov dx, word [eax + 0x30]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x4c]
call fcn.0063b3dc
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x649b90
call fcn.0040b918
mov edx, dword [ebp - 0xb8]
mov eax, edi
call fcn.00677f0c
jmp 0x648f18
mov edx, 0x649ba8
mov eax, edi
call fcn.00677f0c
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00648740
pop ecx
cmp dword [ebp - 0x10], 0
je 0x648f53
lea eax, [ebp - 0xc0]
mov ecx, dword [ebp - 0x10]
mov edx, 0x649bb4
call fcn.0040514c
mov edx, dword [ebp - 0xc0]
mov eax, edi
call fcn.00677f0c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
call fcn.00633c1c
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp + 8]
mov dx, word [eax + 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
call fcn.006420b0
mov edx, dword [ebp - 0xc4]
mov eax, edi
call fcn.00677f0c
mov edx, 0x649bc0
mov eax, edi
call fcn.00677f0c
mov dword [ebp - 0x20], 0xffffffff
jmp 0x6491eb
cmp dword [ebp - 0x34], 0
je 0x649002
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x48]
mov edx, edi
mov eax, dword [ebp - 0x34]
call fcn.00633084
xor eax, eax
mov dword [ebp - 0x34], eax
push 1
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0xc]
call fcn.0064a528
mov edx, dword [ebp - 0xc8]
mov eax, edi
call fcn.00677f0c
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00648740
pop ecx
cmp dword [ebp - 0x10], 0
je 0x649065
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x649bb4
call fcn.0040514c
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0xd0]
mov eax, dword [ebx + 0xc]
call fcn.006488c8
pop ecx
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x649bcc
call fcn.0040b918
mov edx, dword [ebp - 0xcc]
mov eax, edi
call fcn.00677f0c
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
jmp 0x6491eb
cmp dword [ebp - 0x34], 0
je 0x6490f2
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x48]
mov edx, edi
mov eax, dword [ebp - 0x34]
call fcn.00633084
xor eax, eax
mov dword [ebp - 0x34], eax
push 1
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0xd4]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0xc]
call fcn.0064a528
mov edx, dword [ebp - 0xd4]
mov eax, edi
call fcn.00677f0c
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.00648740
pop ecx
cmp dword [ebp - 0x10], 0
je 0x649155
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x649bb4
call fcn.0040514c
mov dl, 0xc
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x20]
test al, al
je 0x649195
lea eax, [ebp - 0xd8]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x649bdc
call fcn.0040b918
mov edx, dword [ebp - 0xd8]
mov eax, edi
call fcn.00677f0c
mov byte [ebp - 0x27], 1
jmp 0x6491e5
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0xe0]
mov eax, dword [ebx + 0xc]
call fcn.006488c8
pop ecx
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x649bcc
call fcn.0040b918
mov edx, dword [ebp - 0xdc]
mov eax, edi
call fcn.00677f0c
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, edi
call fcn.00644f80
cmp dword [ebx + 8], 0
jge 0x64937b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
test eax, eax
jge 0x64937b
lea eax, [ebp - 0x18]
call fcn.00404e30
mov ecx, dword [ebp - 0x2c]
mov dl, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x24]
test al, al
je 0x64927e
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00644e14
cmp dword [ebp - 0x18], 0
je 0x64927e
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp + 8]
mov dx, word [eax + 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
call fcn.006420b0
mov edx, dword [ebp - 0xe4]
mov eax, edi
call fcn.00677f0c
lea eax, [ebp - 0x10]
call fcn.00404e30
mov eax, dword [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 0x40
setne al
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x78]
test al, al
je 0x6492e4
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 0x40
je 0x6492d8
lea edx, [ebp - 0xe8]
mov eax, dword [ebp - 0x10]
call fcn.006874d0
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0x10]
call fcn.00407048
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00677f0c
jmp 0x64934c
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0xec]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
call fcn.006859c8
mov eax, dword [ebp - 0xec]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov edx, edi
mov eax, ebx
mov si, 0xfff5
call fcn.004041ac
mov ecx, dword [ebp - 0x2c]
mov dl, 2
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x24]
test al, al
je 0x6496d3
cmp dword [ebp - 0x18], 0
je 0x6496d3
mov edx, 0x649bec
mov eax, edi
call fcn.00677f0c
jmp 0x6496d3
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x84]
call fcn.00670d84
mov edx, 6
call fcn.0066c350
test al, al
je 0x6493df
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xf4]
mov edx, dword [ebp - 0x2c]
xor eax, eax
call fcn.00648248
pop ecx
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x649bfc
call fcn.0040b918
mov edx, dword [ebp - 0xf0]
mov eax, edi
call fcn.00677f0c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00648890
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x24]
call fcn.00644e0c
test al, al
je 0x6496d3
lea eax, [ebp - 0x18]
call fcn.00404e30
mov ecx, dword [ebp - 0x2c]
mov dl, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x24]
test al, al
je 0x64944b
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xf8]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
call fcn.00648248
pop ecx
mov ecx, dword [ebp - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.00644e14
cmp dword [ebp - 0x18], 0
je 0x649479
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [ebp + 8]
mov dx, word [eax + 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
call fcn.006420b0
mov edx, dword [ebp - 0xfc]
mov eax, edi
call fcn.00677f0c
jmp 0x6494d4
cmp dword [ebp - 0x24], 0
jne 0x64948e
cmp byte [ebp - 0x26], 0
je 0x64948e
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 4
je 0x6494d4
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
call fcn.00648248
pop ecx
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x649bfc
call fcn.0040b918
mov edx, dword [ebp - 0x100]
mov eax, edi
call fcn.00677f0c
lea eax, [ebp - 0x14]
call fcn.00404e30
cmp dword [ebp - 0x18], 0
jne 0x64955f
lea ecx, [ebp - 0x14]
mov dl, 1
mov eax, ebx
mov si, 0xffc3
call fcn.004041ac
lea ecx, [ebp - 0x108]
mov edx, dword [ebp - 0x14]
mov al, 1
call fcn.00637b84
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x14]
call fcn.00404ec8
cmp dword [ebp - 0x14], 0
je 0x64955f
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp + 8]
mov dx, word [eax + 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.006420b0
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x649bfc
call fcn.0040b918
mov edx, dword [ebp - 0x10c]
mov eax, edi
call fcn.00677f0c
cmp dword [ebx + 8], 0
jl 0x649593
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00645144
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00677f0c
jmp 0x649661
lea eax, [ebp - 0x10]
call fcn.00404e30
mov eax, dword [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 0x40
setne al
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x78]
test al, al
je 0x6495f9
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 0x40
je 0x6495ed
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 0x10]
call fcn.006874d0
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x10]
call fcn.00407048
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00677f0c
jmp 0x649661
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x118]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
call fcn.006859c8
mov eax, dword [ebp - 0x118]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov edx, edi
mov eax, ebx
mov si, 0xfff5
call fcn.004041ac
cmp dword [ebp - 0x14], 0
je 0x649673
mov edx, 0x649c10
mov eax, edi
call fcn.00677f0c
cmp dword [ebp - 0x18], 0
je 0x649687
mov edx, 0x649bec
mov eax, edi
call fcn.00677f0c
jmp 0x6496a8
cmp dword [ebp - 0x24], 0
jne 0x64969c
cmp byte [ebp - 0x26], 0
je 0x64969c
mov eax, dword [ebp + 8]
test byte [eax + 0x31], 4
je 0x6496a8
mov edx, 0x649c10
mov eax, edi
call fcn.00677f0c
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x84]
call fcn.00670d84
mov edx, 6
call fcn.0066c350
test al, al
je 0x6496d3
mov edx, 0x649c10
mov eax, edi
call fcn.00677f0c
cmp byte [ebp - 0x35], 0
je 0x6496f9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00659be4
push eax
push 5
mov ecx, dword [ebp - 0xc]
inc ecx
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0064a4ac
inc dword [ebp - 0xc]
dec dword [ebp - 0x40]
jne 0x648ac5
cmp dword [ebp - 0x34], 0
je 0x649780
mov edx, 0x649b28
mov eax, edi
call fcn.00677f30
push 0
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00659be4
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0064a528
mov edx, dword [ebp - 0x11c]
mov eax, edi
call fcn.00677f0c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x48]
mov edx, edi
mov eax, dword [ebp - 0x34]
call fcn.00633084
cmp dword [ebp - 0x20], 0xffffffff
je 0x649823
cmp byte [ebp - 0x27], 0
je 0x64979e
mov edx, 0x649b38
mov eax, edi
call fcn.00677f30
jmp 0x6497e1
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 0x20]
call fcn.006488c8
pop ecx
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x649b48
call fcn.0040b918
mov edx, dword [ebp - 0x120]
mov eax, edi
call fcn.00677f30
push 0
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00659be4
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0064a528
mov edx, dword [ebp - 0x128]
mov eax, edi
call fcn.00677f0c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, edi
call fcn.00644f80
push 0
push edi
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [0x62dd6c]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.006454d8
push 0
push edi
push 1
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [0x62dc28]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.006454d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64991e
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 0
je 0x6498f2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
call fcn.00403fa4
cmp byte [ebp - 0x25], 0
je 0x649916
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
call fcn.00403fa4
cmp byte [ebp - 0x35], 0
je 0x649916
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dl, 5
call fcn.0064a4e0
ret