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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x101b9820]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x490], 0
xorpd xmm0, xmm0
movlpd qword [ebp - 0x498], xmm0
cmp dword [ebp + 8], 0
jne 0x101639d5
or eax, 0xffffffff
jmp 0x101640b3
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x498], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x494], edx
cmp dword [ebp + 0xc], 0
jne 0x101639f9
mov eax, 0xfffffffe
jmp 0x101640b3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48c], eax
mov ecx, dword [ebp - 0x48c]
add ecx, 1
mov dword [ebp - 0x4bc], ecx
mov edx, dword [ebp - 0x48c]
mov al, byte [edx]
mov byte [ebp - 0x485], al
add dword [ebp - 0x48c], 1
cmp byte [ebp - 0x485], 0
jne 0x10163a11
mov ecx, dword [ebp - 0x48c]
sub ecx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c0], ecx
mov edx, dword [ebp - 0x4c0]
mov dword [ebp - 0x484], edx
cmp dword [ebp - 0x484], 0
jne 0x10163a60
mov eax, 0xfffffffe
jmp 0x101640b3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5c], 0
je 0x10163a8f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5c], 0
je 0x10163a8b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
push eax
call fcn.100640c1
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], 0
xor edx, edx
jne 0x10163a69
push 0x2f
push 0x5c
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10164160
add esp, 0x10
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5c], 0
jne 0x10163abf
mov eax, 0xfffffffe
jmp 0x101640b3
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x47c], ecx
mov edx, dword [ebp - 0x47c]
cmp dword [edx + 0x14], 1
jne 0x10163c13
cmp dword [ebp + 0x10], 0
je 0x10163aea
mov dword [ebp - 0x4b8], 0x100
jmp 0x10163af4
mov dword [ebp - 0x4b8], 0
mov eax, dword [ebp - 0x4b8]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0x47c]
push eax
call fcn.101667f0
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x58], 0
jge 0x10163b36
mov dword [ebp - 0x480], 0xfffffffd
jmp 0x10164087
lea eax, [ebp - 0x478]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
push edx
mov eax, dword [ebp - 0x47c]
push eax
call fcn.101641f0
add esp, 0xc
test eax, eax
jne 0x10163b6b
mov dword [ebp - 0x480], 0xfffffffd
jmp 0x10164087
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x450]
mov dword [ecx + 0x68], edx
mov eax, dword [ebp - 0x44c]
mov dword [ecx + 0x6c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x448]
mov dword [ecx + 0x60], edx
mov eax, dword [ebp - 0x444]
mov dword [ecx + 0x64], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x458]
mov dword [ecx + 0x70], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x470]
mov dword [eax + 0x78], ecx
mov edx, dword [ebp - 0x46c]
mov dword [eax + 0x7c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x438]
mov dword [eax + 0xa0], ecx
mov edx, dword [ebp - 0x434]
mov dword [eax + 0xa4], edx
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x462]
mov word [eax + 0xa8], cx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x43c]
mov dword [edx + 0x4e008], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x460]
mov dword [ecx + 0x4e010], edx
mov eax, dword [ebp - 0x45c]
mov dword [ecx + 0x4e014], eax
xor eax, eax
jmp 0x101640b3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x50]
and edx, 0xf
mov dword [ebp - 0x4a0], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x58], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x70], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax + 0x78], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 0x7c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edx + 0xa0], ecx
mov eax, dword [eax + 4]
mov dword [edx + 0xa4], eax
xor ecx, ecx
mov edx, dword [ebp + 8]
add edx, 0x80
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov word [edx + 0x1c], cx
cmp dword [ebp - 0x4a0], 0
je 0x10163cba
mov dword [ebp - 0x4b4], 8
jmp 0x10163cc4
mov dword [ebp - 0x4b4], 0
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0x4b4]
mov word [eax + 0xa8], cx
mov edx, dword [ebp + 8]
mov dword [edx + 0x4e008], 0
mov eax, dword [ebp - 0x47c]
push eax
call fcn.10164970
add esp, 4
mov dword [ebp - 0x49c], eax
mov ecx, dword [ebp - 0x47c]
cmp dword [ecx + 0x48], 0
je 0x10163d0f
mov edx, dword [ebp - 0x47c]
cmp dword [edx + 0x14], 2
je 0x10163d23
mov dword [ebp - 0x480], 0xfffffffc
jmp 0x10164087
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
and ecx, 0x400
je 0x10163d45
mov dword [ebp - 0x480], 0xfffffffb
jmp 0x10164087
mov edx, dword [ebp - 0x49c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
push ecx
mov edx, dword [eax + 0x78]
push edx
mov eax, dword [ebp - 0x47c]
push eax
call fcn.10164870
add esp, 0x10
test eax, eax
jne 0x10163d7e
mov dword [ebp - 0x480], 0xfffffff9
jmp 0x10164087
mov ecx, dword [ebp - 0x49c]
xor edx, edx
add ecx, dword [ebp - 0x498]
adc edx, dword [ebp - 0x494]
mov dword [ebp - 0x498], ecx
mov dword [ebp - 0x494], edx
push 0
call fcn.10163960
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4e010], eax
mov dword [ecx + 0x4e014], edx
lea edx, [ebp - 0x4a4]
push edx
lea eax, [ebp - 0x4a8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4e014]
push edx
mov eax, dword [ecx + 0x4e010]
push eax
call fcn.10168fa0
add esp, 0x10
cmp dword [ebp - 0x494], 0
ja 0x10163df0
cmp dword [ebp - 0x498], 0xffffffff
jb 0x10163dfe
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x4b0], ecx
jmp 0x10163e08
mov dword [ebp - 0x4b0], 0
mov edx, dword [ebp - 0x4b0]
push edx
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.10164f30
add esp, 0x10
mov dword [ebp - 0x490], eax
movzx ecx, word [ebp - 0x4a4]
push ecx
movzx edx, word [ebp - 0x4a8]
push edx
push 0x808
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xa8]
push ecx
push 0
push 0
push 0
push 0
push 0
movzx edx, word [ebp - 0x490]
push edx
movzx eax, word [ebp - 0x484]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x80
push ecx
mov edx, dword [ebp - 0x47c]
push edx
call fcn.10164dc0
add esp, 0x34
test eax, eax
jne 0x10163e90
mov dword [ebp - 0x480], 0xfffffff9
jmp 0x10164087
mov eax, dword [ebp - 0x49c]
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 0x78]
adc ecx, dword [edx + 0x7c]
mov edx, dword [ebp + 8]
mov dword [edx + 0xa0], eax
mov dword [edx + 0xa4], ecx
push 0x1e
mov eax, dword [ebp + 8]
add eax, 0x80
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
push edx
mov eax, dword [ecx + 0xa0]
push eax
mov ecx, dword [ebp - 0x47c]
mov edx, dword [ecx + 0x44]
push edx
mov eax, dword [ebp - 0x47c]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0x14
cmp eax, 0x1e
je 0x10163efd
mov dword [ebp - 0x480], 0xfffffff9
jmp 0x10164087
mov edx, dword [ebp - 0x47c]
mov dword [ebp - 0x4ac], edx
mov eax, dword [ebp - 0x49c]
add eax, 0x1e
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 0x78]
adc ecx, dword [edx + 0x7c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], eax
mov dword [edx + 0x7c], ecx
mov eax, dword [ebp - 0x484]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
push ecx
mov edx, dword [eax + 0x78]
push edx
mov eax, dword [ebp - 0x47c]
mov ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp - 0x47c]
mov eax, dword [edx + 0x3c]
call eax
add esp, 0x14
cmp eax, dword [ebp - 0x484]
je 0x10163f73
mov dword [ebp - 0x480], 0xfffffff8
jmp 0x10164087
mov ecx, dword [ebp - 0x484]
xor edx, edx
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x78]
adc edx, dword [eax + 0x7c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], edx
mov ecx, dword [ebp - 0x490]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
push ecx
mov edx, dword [eax + 0x78]
push edx
mov eax, dword [ebp - 0x47c]
mov ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp - 0x47c]
mov eax, dword [edx + 0x3c]
call eax
add esp, 0x14
cmp eax, dword [ebp - 0x490]
je 0x10163fd7
mov dword [ebp - 0x480], 0xfffffff8
jmp 0x10164087
mov ecx, dword [ebp - 0x490]
xor edx, edx
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x78]
adc edx, dword [eax + 0x7c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], edx
cmp dword [ebp - 0x4a0], 0
je 0x10164083
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x47c]
mov dword [ecx + 0xb0], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
mov dword [eax + 0xb8], edx
mov ecx, dword [ecx + 0x7c]
mov dword [eax + 0xbc], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0xc0], 0
mov dword [edx + 0xc4], 0
push 0
push 0xfffffffffffffff1
mov eax, dword [ebp - 0x4a0]
push eax
call fcn.1016c460
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb0
push ecx
push 0x10165020
mov edx, dword [ebp + 8]
add edx, 0xc8
push edx
call fcn.1016c600
add esp, 0x10
test eax, eax
je 0x10164083
mov dword [ebp - 0x480], 0xfffffff7
jmp 0x10164087
xor eax, eax
jmp 0x101640b3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5c], 0
je 0x101640a9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
push edx
call fcn.100640c1
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], 0
xor ecx, ecx
jne 0x10164087
mov eax, dword [ebp - 0x480]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063bb0
mov esp, ebp
pop ebp
ret