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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b2273
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x100e5900]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x100e5900]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x18], ebx
mov ecx, 0xf
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], eax
mov esi, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x1a8], ebx
cmp dword [eax + 0x10], ebx
jne 0x1000182b
mov dword [edi + 0x14], ecx
lea eax, [esp + 0x3c]
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.10002fa0
cmp dword [esp + 0x50], 0x10
jb 0x10001b1a
mov ecx, dword [esp + 0x3c]
push ecx
jmp 0x10001b12
lea edx, [esp + 0x180]
push edx
call fcn.10090470
lea eax, [esp + 0x17c]
push eax
call fcn.10090470
movzx ecx, byte [esp + 0x188]
mov eax, ecx
add esp, 8
xor edx, edx
cmp eax, ebx
jbe 0x10001866
lea edi, [eax - 1]
and eax, edi
inc edx
cmp eax, ebx
ja 0x10001858
mov edi, dword [esp + 0x14]
and edx, 0x80000001
jns 0x10001873
dec edx
or edx, 0xfffffffe
inc edx
jne 0x10001887
mov eax, ecx
not eax
xor eax, ecx
and eax, 1
xor eax, ecx
mov byte [esp + 0x180], al
movzx edx, byte [esp + 0x178]
mov eax, edx
xor ecx, ecx
cmp eax, ebx
jbe 0x100018a5
lea edi, [eax - 1]
and eax, edi
inc ecx
cmp eax, ebx
ja 0x10001897
mov edi, dword [esp + 0x14]
and ecx, 0x80000001
jns 0x100018b2
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x100018c6
mov eax, edx
not eax
xor eax, edx
and eax, 1
xor eax, edx
mov byte [esp + 0x178], al
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x184]
push edx
call fcn.10090580
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x184]
push ecx
call fcn.10090580
mov edx, dword [esp + 0x190]
mov eax, dword [esp + 0x194]
mov ecx, dword [esp + 0x188]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x18c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0x10041c30
mov dword [esi + 0x10], edx
mov eax, dword [0x100dd9d4]
mov dword [esi + 0x14], eax
mov ecx, dword [0x100dd9d8]
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov dword [esi + 0x18], ecx
mov dx, word [0x100dd9dc]
push 0xffffffffffffffff
mov word [esi + 0x1c], dx
push ebx
mov esi, 0xf
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.10003110
mov byte [esp + 0x1a8], 1
mov ecx, dword [esp + 0x30]
and ecx, 7
mov eax, 8
sub eax, ecx
cmp eax, 8
jae 0x10001982
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.10002d70
cmp dword [esp + 0x30], ebx
je 0x10001a99
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x1000199b
lea eax, [esp + 0x20]
mov edx, dword [eax]
push 1
mov dword [esp + 0x18c], edx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0xfc]
push edx
mov dword [esp + 0x198], eax
mov eax, ecx
push eax
lea ecx, [esp + 0x1a0]
push ecx
lea edx, [esp + 0x19c]
push edx
call fcn.10090390
add esp, 0x18
push 8
lea eax, [esp + 0x194]
push eax
lea ecx, [esp + 0x44]
call fcn.10002c50
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff8
push ecx
push 8
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
call fcn.10002f60
mov esi, eax
lea eax, [esp + 0x20]
cmp eax, esi
je 0x10001a6e
cmp dword [esp + 0x34], 0x10
jb 0x10001a21
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10075faf
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esi + 0x14], 0x10
jae 0x10001a4c
mov eax, dword [esi + 0x10]
inc eax
push eax
lea edx, [esp + 0x24]
push esi
push edx
call fcn.100765c0
add esp, 0xc
jmp 0x10001a54
mov eax, dword [esi]
mov dword [esp + 0x20], eax
mov dword [esi], ebx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x34], edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov byte [esp + 0x1a8], 1
cmp dword [esp + 0x6c], 0x10
jb 0x10001a8a
mov eax, dword [esp + 0x58]
push eax
call fcn.10075faf
add esp, 4
cmp dword [esp + 0x30], ebx
jne 0x1000198c
mov esi, 0xf
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x58]
call fcn.10001310
mov byte [esp + 0x1a8], 3
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov dword [esp + 0x1c], 2
mov byte [edi], bl
call fcn.10002fa0
cmp dword [esp + 0x6c], 0x10
jb 0x10001ada
mov ecx, dword [esp + 0x58]
push ecx
call fcn.10075faf
add esp, 4
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x10001afa
mov edx, dword [esp + 0x20]
push edx
call fcn.10075faf
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x10001b1a
mov eax, dword [esp + 0x3c]
push eax
call fcn.10075faf
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.10077184
mov esp, ebp
pop ebp
ret