Function at 0x645808
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [ebp + 0x44]
push ebx
push esi
push edi
xor edi, edi
mov ebx, 1
mov dword [eax], edi
cmp dword [ecx + 4], ebx
mov dword [esp + 0x4c], ecx
jne 0x646ba4
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x30]
push ecx
push esi
call fcn.00652988
add esp, 8
test eax, eax
jne 0x64585b
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x2c]
cmp eax, edi
je 0x64589b
cmp eax, 2
je 0x645891
cmp eax, ebx
je 0x645891
cmp eax, 3
je 0x645891
cmp eax, 4
je 0x64589b
cmp eax, 5
je 0x645891
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
mov dword [edx], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
cmp eax, 4
je 0x64589b
cmp eax, 5
jne 0x6458b6
test ebx, esi
je 0x6458b6
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [ebp + 0x18]
lea edx, [esp + 0x100]
push edx
mov ecx, esi
call fcn.00651fd8
mov eax, dword [ebp + 0x14]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x6458db
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea eax, [esp + 0x28]
push 4
push eax
call fcn.0062a968
lea ecx, [esp + 0x34]
push 4
push ecx
call fcn.0062a968
lea edx, [esp + 0x2c]
push 4
push edx
mov dword [esp + 0x60], edi
call fcn.0062a968
lea eax, [esp + 0x38]
push 4
push eax
call fcn.0062a968
lea ecx, [esp + 0x34]
push 4
push ecx
call fcn.0062a968
add esp, 0x28
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 0xffffffff
call fcn.00663a98
lea ecx, [esp + 0x30]
call fcn.00663a98
lea ecx, [esp + 0x60]
call fcn.00652358
lea esp, [esp]
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00652248
test eax, eax
je 0x6460d4
cmp dword [esp + 0x60], edi
je 0x6459a6
lea eax, [esp + 0x64]
push eax
call fcn.00652a48
add esp, 4
test eax, eax
je 0x645a2f
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
mov dword [esp + 0x58], 0x10
push edx
lea ecx, [esp + 0x38]
mov ebx, 1
call fcn.00663b38
push eax
lea ecx, [esp + 0x3c]
call fcn.00663b98
jmp 0x645a6e
lea eax, [esp + 0x64]
push eax
call fcn.006523e8
add esp, 4
test eax, eax
je 0x645f3f
mov eax, dword [esp + 0x6c]
cmp eax, 1
jne 0x645a33
mov esi, dword [0x1009e670]
lea ecx, [esp + 0x120]
push ecx
mov ecx, dword [ebp + 0x18]
push edi
push pe_nt_image_headers32
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x120]
push eax
add esi, 0x378
call fcn.00652168
push eax
push edi
lea ecx, [esp + 0xe4]
call fcn.00663868
mov ecx, eax
call fcn.00663898
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
test eax, eax
jne 0x645a2f
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x64]
push edx
mov dword [esp + 0x58], ecx
push eax
jmp 0x645989
xor ebx, ebx
jmp 0x645a6e
cmp eax, edi
jne 0x6460c1
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x10c]
push eax
mov ecx, esi
call fcn.00652038
push eax
call fcn.00652ac8
add esp, 0x14
mov ebx, eax
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0062a968
add esp, 8
cmp ebx, edi
je 0x645bd8
mov eax, dword [esp + 0x6c]
sub eax, edi
je 0x645b2d
sub eax, 1
jne 0x645ff1
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x34]
call fcn.00663848
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x3c]
call fcn.00663848
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
push 3
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x5c]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x645afa
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x645b10
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
cmp ecx, edi
je 0x645eec
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov dword [esp + 0x50], edi
jmp 0x645ee8
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x34]
call fcn.00663848
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
call fcn.00663848
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
and eax, 0x10
mov edx, dword [edx + 0x9c]
neg al
sbb eax, eax
neg eax
add eax, 1
push eax
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x9c]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x645b9f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x645bb5
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x90]
cmp ecx, edi
je 0x645eec
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov dword [esp + 0x90], edi
jmp 0x645ee8
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov esi, 1
cmp eax, esi
jne 0x645bf6
cmp dword [esp + 0x6c], edi
je 0x64600a
lea ecx, [esp + 0xa0]
call fcn.00652358
lea ecx, [esp + 0xa0]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00652248
test eax, eax
je 0x645c56
mov eax, dword [esp + 0xac]
cmp eax, edi
je 0x646023
cmp eax, esi
jne 0x645c56
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x64603f
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x48], esi
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
jmp 0x645c59
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x646078
cmp eax, 4
je 0x646078
mov eax, dword [esp + 0x6c]
cmp eax, edi
jne 0x645d40
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x24]
lea edx, [esp + 0x1c]
push edx
and esi, 1
push esi
push eax
call fcn.00652968
add esp, 8
push eax
push esi
call fcn.0065d7e8
add esp, 0xc
cmp eax, edi
jne 0x64605b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x98]
push eax
xor eax, eax
cmp esi, edi
setne al
add eax, 1
push eax
lea eax, [esp + 0x6c]
push eax
push eax
lea eax, [esp + 0x88]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x645ce5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x645cfb
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x78]
cmp ecx, edi
je 0x645d13
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], edi
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x645d27
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x645eec
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
jmp 0x645ee8
cmp eax, esi
jne 0x645ee8
lea eax, [esp + 0x20]
push eax
call fcn.0065ebf8
add esp, 4
cmp eax, edi
jne 0x64605b
mov ecx, dword [esp + 0x68]
push ecx
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x10c]
push edx
call fcn.00652038
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.006638e8
mov esi, dword [0x1009e670]
push 1
push 3
lea ecx, [esp + 0x120]
mov dword [esp + 0x64], edi
add esi, 0x168
call fcn.00663818
mov ecx, eax
call fcn.00663898
push eax
push edi
push pe_nt_image_headers32
lea ecx, [esp + 0x84]
call fcn.00663898
push eax
push edi
lea ecx, [esp + 0xec]
call fcn.00663868
mov ecx, eax
call fcn.00663898
mov edx, dword [esi]
push eax
push 0x180
lea eax, [esp + 0x70]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
test eax, eax
jne 0x645e7d
mov esi, dword [0x1009e670]
push 4
push 0x28
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0xc4]
add esi, 0x288
call fcn.00663818
mov ecx, eax
call fcn.00663898
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esi]
push edx
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
call eax
test eax, eax
jne 0x645e7d
test dword [esp + 0xf0], 0x20
jne 0x645e7d
mov esi, dword [0x1009e670]
or dword [esp + 0xf0], 0x20
push 4
push 0x28
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0xa0]
add esi, 0x258
call fcn.00663818
mov ecx, eax
call fcn.00663898
mov ecx, dword [esp + 0x68]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push ecx
mov ecx, esi
call eax
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x94]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push eax
lea ecx, [esp + 0x14]
call fcn.00635288
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x645ebb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x645ecb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x645edf
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea ecx, [esp + 0x5c]
call fcn.00632138
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x30]
call fcn.006352c8
cmp esi, edi
je 0x645f07
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x645f2f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x645f2f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
cmp ebx, edi
je 0x6460d4
mov esi, dword [ebp + 0x18]
jmp 0x645948
cmp dword [0x1009e708], edi
je 0x645f9b
push 0x10084ea0
push 0x10090738
lea eax, [esp + 0x6c]
push eax
push 0x1009049c
push 0x100906f0
lea ecx, [esp + 0xa8]
call fcn.00625f48
mov ecx, eax
call fcn.00624e78
mov ecx, eax
call fcn.00624e78
mov ecx, eax
call fcn.00625f88
mov ecx, eax
call fcn.00624e78
mov ecx, eax
call fcn.00624e78
lea ecx, [esp + 0x94]
call fcn.00624d88
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
mov dword [edx], 0xc000003b
lea ecx, [esp + 0x30]
call fcn.00663bb8
lea ecx, [esp + 0x38]
call fcn.00663bb8
lea ecx, [esp + 0x14]
call fcn.006578e8
lea ecx, [esp + 0x20]
call fcn.006578e8
lea ecx, [esp + 0x1c]
call fcn.006578e8
lea ecx, [esp + 0x28]
call fcn.006358e8
lea ecx, [esp + 0x18]
call fcn.006578e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000229
lea ecx, [esp + 0x10]
call fcn.006578e8
jmp 0x645fa9
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x10]
mov dword [eax], 0xc000003a
call fcn.006578e8
jmp 0x645fa9
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x10]
mov dword [edx], 0xc000003a
call fcn.006578e8
jmp 0x645fa9
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000034
lea ecx, [esp + 0x10]
call fcn.006578e8
jmp 0x645fa9
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov dword [edx], edi
mov dword [ecx], eax
lea ecx, [esp + 0x10]
call fcn.006578e8
jmp 0x645fa9
test dword [ebp + 0x30], esi
je 0x6460a5
mov ecx, dword [ebp + 0x18]
call fcn.006521b8
test eax, eax
je 0x6460a5
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x10]
mov dword [eax], 0xc0000103
call fcn.006578e8
jmp 0x645fa9
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x10]
mov dword [edx], 0xc0000034
call fcn.006578e8
jmp 0x645fa9
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000229
jmp 0x645fa9
cmp ebx, edi
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], 0xffffffff
je 0x64673c
mov edx, dword [ebp + 0x2c]
cmp edx, 2
jne 0x646170
mov esi, dword [ebp + 0x30]
test esi, 1
je 0x646126
mov ecx, dword [ebp + 0x18]
call fcn.006521b8
test eax, eax
je 0x646126
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x24]
mov dword [eax], 0xc0000103
call fcn.00632178
jmp 0x645fa9
test esi, 0x40
je 0x646154
test dword [esp + 0x54], 0x10
je 0x646154
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x24]
mov dword [edx], 0xc00000ba
call fcn.00632178
jmp 0x645fa9
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000035
lea ecx, [esp + 0x24]
call fcn.00632178
jmp 0x645fa9
cmp edx, 1
je 0x646409
cmp edx, 3
je 0x646409
cmp edx, edi
je 0x646194
cmp edx, 4
je 0x646194
cmp edx, 5
jne 0x646744
mov esi, dword [ebp + 0x30]
mov ecx, dword [esp + 0x54]
mov eax, esi
and eax, 0x40
je 0x6461c6
test ecx, 0x10
je 0x6461c6
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x24]
mov dword [eax], 0xc00000ba
call fcn.00632178
jmp 0x645fa9
cmp eax, edi
jne 0x6461f6
test esi, 1
jne 0x6461f6
test ecx, 0x10
je 0x6461f6
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x24]
mov dword [edx], 0xc0000035
call fcn.00632178
jmp 0x645fa9
cmp edx, edi
jne 0x64621e
test ecx, 0x10
je 0x64621e
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc000000d
lea ecx, [esp + 0x24]
call fcn.00632178
jmp 0x645fa9
test esi, 1
je 0x64624e
mov ecx, dword [ebp + 0x18]
call fcn.006521b8
test eax, eax
je 0x64624e
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x24]
mov dword [eax], 0xc000000d
call fcn.00632178
jmp 0x645fa9
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
cmp eax, 3
jne 0x6462d6
lea ecx, [esp + 0x20]
push ecx
call fcn.0065ebf8
add esp, 4
cmp eax, edi
jne 0x646555
mov eax, dword [esi]
lea edx, [esp + 0x70]
push edx
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.00663848
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x94]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00635288
lea ecx, [esp + 0x40]
call fcn.006578e8
lea ecx, [esp + 0x80]
call fcn.00663bb8
jmp 0x64637b
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
xor ecx, ecx
cmp eax, 2
mov eax, dword [ebp + 0x24]
sete cl
lea edx, [esp + 0x1c]
push edx
mov esi, ecx
push esi
push eax
call fcn.00652968
add esp, 8
push eax
push esi
call fcn.0065d7e8
add esp, 0xc
cmp eax, edi
jne 0x646608
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
call fcn.00663848
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00663848
mov edx, dword [esp + 0x4c]
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov esi, dword [edi]
push eax
mov eax, dword [edx + 0x18]
add esi, 0x98
call eax
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x8c]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00635288
lea ecx, [esp + 0x40]
call fcn.006578e8
xor edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x40]
push edx
call eax
xor ecx, ecx
cmp dword [eax], edi
setne cl
mov esi, ecx
lea ecx, [esp + 0x40]
call fcn.006578e8
cmp esi, edi
je 0x6463db
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x40]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
push edx
call eax
lea ecx, [esp + 0x40]
call fcn.006578e8
mov eax, dword [ebp + 0x2c]
neg eax
sbb eax, eax
and eax, 3
mov dword [esp + 0x5c], eax
jmp 0x646744
lea ecx, [esp + 0x28]
call fcn.00635368
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.006352c8
mov eax, dword [ebp + 0x2c]
neg eax
sbb eax, eax
and eax, 3
mov dword [esp + 0x5c], eax
jmp 0x646744
mov eax, dword [ebp + 0xc]
push eax
call fcn.00652848
add esp, 4
test eax, eax
je 0x646725
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x646441
test al, 0x10
je 0x646441
mov ecx, dword [ebp + 0x40]
mov dword [ecx], 1
lea ecx, [esp + 0x24]
call fcn.00632178
jmp 0x645fa9
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
mov esi, dword [0x1009e670]
push edx
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
push ebx
push eax
push ecx
lea ecx, [esp + 0xb0]
add esi, 0x198
call fcn.00663818
mov ecx, eax
call fcn.00663898
mov edx, dword [ebp + 0x10]
push eax
push edx
mov edx, dword [esi]
push 0x100001
lea eax, [esp + 0x4c]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
cmp eax, edi
jne 0x64670d
cmp dword [esp + 0x54], 0xffffffff
jne 0x64652e
lea ecx, [esp + 0x40]
call fcn.00663a98
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x50]
push edx
call fcn.0063b428
cmp eax, edi
je 0x6464e7
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x40]
mov dword [edx], eax
call fcn.00663bb8
lea ecx, [esp + 0x24]
call fcn.00632178
jmp 0x645fa9
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x44]
call fcn.00663898
push eax
call fcn.00652738
add esp, 8
cmp eax, edi
jne 0x6464c6
test byte [esp + 0x54], 0x10
lea ecx, [esp + 0x40]
je 0x646529
mov eax, dword [ebp + 0x40]
mov dword [eax], 1
call fcn.00663bb8
lea ecx, [esp + 0x24]
call fcn.00632178
jmp 0x645fa9
call fcn.00663bb8
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
cmp eax, 3
jne 0x6465d3
lea ecx, [esp + 0x20]
push ecx
call fcn.0065ebf8
add esp, 4
cmp eax, edi
je 0x646572
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov dword [edx], edi
mov dword [ecx], eax
lea ecx, [esp + 0x24]
call fcn.00632178
jmp 0x645fa9
mov eax, dword [esi]
lea edx, [esp + 0x70]
push edx
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.00663848
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x94]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x48]
push eax
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00635288
lea ecx, [esp + 0x40]
call fcn.006578e8
lea ecx, [esp + 0x80]
call fcn.00663bb8
jmp 0x646691
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
xor ecx, ecx
cmp eax, 2
mov eax, dword [ebp + 0x24]
sete cl
lea edx, [esp + 0x1c]
push edx
mov esi, ecx
push esi
push eax
call fcn.00652968
add esp, 8
push eax
push esi
call fcn.0065d7e8
add esp, 0xc
cmp eax, edi
je 0x646625
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
and eax, 0xefffffff
lea ecx, [esp + 0x24]
mov dword [edx], eax
call fcn.00632178
jmp 0x645fa9
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
call fcn.00663848
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00663848
mov edx, dword [esp + 0x4c]
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov esi, dword [edi]
push eax
mov eax, dword [edx + 0x18]
add esi, 0x98
call eax
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x8c]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.00635288
lea ecx, [esp + 0x40]
call fcn.006578e8
xor edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x40]
push edx
call eax
xor ecx, ecx
cmp dword [eax], edi
setne cl
mov esi, ecx
lea ecx, [esp + 0x40]
call fcn.006578e8
cmp esi, edi
je 0x6466e8
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x40]
push eax
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
push edx
call eax
lea ecx, [esp + 0x40]
call fcn.006578e8
mov dword [esp + 0x5c], 1
jmp 0x646744
lea ecx, [esp + 0x28]
call fcn.00635368
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.006352c8
mov dword [esp + 0x5c], 1
jmp 0x646744
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x24]
mov dword [edx], eax
call fcn.00632178
jmp 0x645fa9
mov eax, dword [ebp + 0x40]
lea ecx, [esp + 0x24]
mov dword [eax], 1
call fcn.00632178
jmp 0x645fa9
mov dword [esp + 0x5c], 2
lea ecx, [esp + 0x58]
push 4
push ecx
call fcn.0062a968
add esp, 8
cmp dword [esp + 0x1c], edi
je 0x6469d3
lea edx, [esp + 0x10]
push 4
push edx
call fcn.0062a968
add esp, 8
cmp dword [esp + 0x48], edi
je 0x6468b5
test dword [ebp + 0x30], 1
je 0x6467ad
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000103
lea ecx, [esp + 0x10]
call fcn.006578e8
lea ecx, [esp + 0x58]
call fcn.006578e8
lea ecx, [esp + 0x24]
call fcn.00632178
jmp 0x645fa9
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x78], ecx
sub eax, 2
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
add ecx, 2
mov word [esp + 0x78], cx
mov esi, dword [eax]
mov ecx, dword [ebp + 0x24]
lea edx, [esp + 0x10]
push edx
mov edi, eax
mov eax, dword [ebp + 0x30]
push eax
push ebx
push 0
push ecx
add esi, 0xc
call fcn.00652968
mov edx, dword [ebp + 0xc]
add esp, 8
push eax
push edx
mov edx, dword [esi]
lea eax, [esp + 0x8c]
push eax
mov ecx, edi
call edx
mov esi, eax
test esi, esi
jne 0x646914
mov ecx, dword [ebp + 0x18]
call fcn.006521b8
test eax, eax
je 0x646914
mov edi, dword [ebp + 0x18]
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call fcn.006521c8
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0xbc]
push edx
mov ecx, edi
call fcn.00652038
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.006638e8
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x8c]
add edi, 0x18
call fcn.00663898
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0x646914
mov eax, dword [esp + 0x48]
test al, 0x20
jne 0x646914
mov ecx, dword [esp + 0x1c]
or eax, 0x20
mov dword [esp + 0x48], eax
mov edi, dword [ecx]
mov ebx, ecx
push eax
lea ecx, [esp + 0x8c]
add edi, 0x1c
call fcn.00663898
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
jmp 0x646914
push 0x10084384
lea ecx, [esp + 0x98]
call fcn.006638c8
mov ecx, eax
call fcn.00663898
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x7c], edx
mov esi, dword [eax]
mov edx, dword [ebp + 0xc]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ecx
push ebx
push edx
push 0x10084384
lea ecx, [esp + 0xa8]
add esi, 0x10
call fcn.006638c8
mov ecx, eax
call fcn.00663898
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov esi, eax
cmp dword [esp + 0x24], 0
je 0x646955
lea ecx, [esp + 0x50]
push 4
push ecx
call fcn.0062a968
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x50]
push eax
call edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00652fc8
add esp, 8
lea ecx, [esp + 0x50]
call fcn.006578e8
test esi, esi
je 0x646972
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
and esi, 0xefffffff
mov dword [edx], 0
mov dword [eax], esi
jmp 0x64678d
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x84]
push ecx
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00650298
add esp, 0x18
push eax
lea ecx, [esp + 0x4c]
call fcn.0068d678
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00635288
lea ecx, [esp + 0x48]
call fcn.006578e8
lea ecx, [esp + 0x40]
call fcn.006578e8
lea ecx, [esp + 0x10]
call fcn.006578e8
xor edi, edi
jmp 0x646aca
cmp dword [esp + 0x20], edi
je 0x646aca
mov esi, dword [ebp + 0x30]
test esi, 1
je 0x6469fb
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], 0xc0000103
jmp 0x646796
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0062a968
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x10]
push eax
call edx
cmp eax, edi
je 0x646a3b
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
and eax, 0xefffffff
lea ecx, [esp + 0x10]
mov dword [edx], eax
call fcn.006578e8
jmp 0x646796
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00651308
add esp, 0x14
push eax
lea ecx, [esp + 0x4c]
call fcn.0068d678
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00635288
lea ecx, [esp + 0x48]
call fcn.006578e8
lea ecx, [esp + 0x40]
call fcn.006578e8
cmp dword [esp + 0x24], edi
je 0x646ac1
lea edx, [esp + 0x50]
push 4
push edx
call fcn.0062a968
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
add esp, 8
lea edx, [esp + 0x50]
push edx
call eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.00652fc8
add esp, 8
lea ecx, [esp + 0x50]
call fcn.006578e8
lea ecx, [esp + 0x10]
call fcn.006578e8
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x4c]
call fcn.006637b8
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0062a968
mov eax, dword [ebp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, esi
call fcn.00644458
test eax, eax
jne 0x646b84
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0x10]
call eax
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
cmp ebx, eax
jne 0x646b84
lea ecx, [esp + 0x28]
call fcn.00635228
lea ecx, [esp + 0x10]
call fcn.006578e8
lea ecx, [esp + 0x48]
call fcn.006637e8
test dword [ebp + 0xc], 0x100000
je 0x646b53
test dword [ebp + 0x30], 0x30
jne 0x646b53
mov eax, 1
jmp 0x646b55
xor eax, eax
mov ecx, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x54]
call fcn.00639468
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x5c]
mov dword [edx], eax
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x40]
mov dword [eax + 4], ecx
mov dword [eax], edi
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], edi
jmp 0x646796
mov ecx, dword [ebp + 0x44]
mov dword [ecx], 1
lea ecx, [esp + 0x10]
call fcn.006578e8
lea ecx, [esp + 0x48]
call fcn.006637e8
jmp 0x646796
mov edx, dword [ebp + 0x40]
pop edi
pop esi
mov dword [edx], ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x40