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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a6dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100d8dd0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x100d8dd0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x20]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ecx
call fcn.10048080
mov dword [esp + 0x90], 0
push eax
call fcn.100387d0
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x10036858
call fcn.100480e0
test eax, eax
je 0x10036858
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
call fcn.10022e30
mov dword [esp + 0x90], 1
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
movzx ecx, ax
xor ebx, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x90], 2
lea edx, [edi + 8]
push edx
lea eax, [esp + 0x28]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x2c], 0x30
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.100696ad
mov al, byte [esi]
add esp, 0x14
cmp al, 0x2b
je 0x100368d1
mov dword [esp + 0x24], ebx
cmp al, 0x2d
jne 0x100368d9
mov dword [esp + 0x24], 1
call fcn.1007e8f5
mov eax, dword [eax]
mov ebx, dword [ebp + 0x30]
mov cl, byte [eax]
push ebx
push 0x65
push esi
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], 0x65
mov byte [esp + 0x2a], 0
call fcn.1007e940
movsx edx, byte [esp + 0x28]
add esp, 0xc
push ebx
push edx
push esi
mov dword [esp + 0x44], eax
call fcn.1007e940
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1003691e
mov dword [ebp + 0x2c], eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
mov ecx, eax
cmp edx, 0x10
jae 0x10036931
lea ecx, [esp + 0x68]
cmp byte [ecx], 0x7f
je 0x10036a6d
cmp edx, 0x10
jae 0x10036943
lea eax, [esp + 0x68]
cmp byte [eax], 0
jle 0x10036a6d
push ebx
push esi
lea ecx, [esp + 0x50]
call fcn.10036580
mov ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x10036970
mov eax, dword [ebp + 0x2c]
push 0x30
push eax
lea ecx, [esp + 0x50]
call fcn.1003efc0
jmp 0x1003699f
cmp dword [esp + 0x14], 0
jne 0x1003698d
mov ecx, dword [ebp + 0x24]
push 0x30
push ecx
lea ecx, [esp + 0x50]
call fcn.1003efc0
mov dword [ebp + 0x24], 0
mov edx, dword [ebp + 0x2c]
push 0x30
push edx
sub ebx, esi
push ebx
lea ecx, [esp + 0x54]
call fcn.10036690
mov ebx, dword [esp + 0x14]
push 0x30
test ebx, ebx
jne 0x100369b8
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [esp + 0x50]
call fcn.1003efc0
jmp 0x100369e2
mov ecx, dword [ebp + 0x28]
sub ebx, esi
push ecx
lea edx, [ebx + 1]
push edx
lea ecx, [esp + 0x54]
call fcn.10036690
mov eax, dword [ebp + 0x24]
push 0x30
push eax
push ebx
lea ecx, [esp + 0x54]
call fcn.10036690
mov dword [ebp + 0x28], 0
mov ebx, dword [esp + 0x68]
mov eax, 0x10
mov dword [ebp + 0x24], 0
cmp dword [esp + 0x7c], eax
jae 0x100369fc
lea ebx, [esp + 0x68]
cmp dword [esp + 0x60], eax
mov eax, dword [esp + 0x4c]
jae 0x10036a0a
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.1007e9f0
mov esi, eax
mov al, byte [ebx]
add esp, 8
cmp al, 0x7f
je 0x10036a4e
test al, al
jle 0x10036a4e
mov edx, esi
sub edx, dword [esp + 0x24]
movsx eax, al
cmp eax, edx
jae 0x10036a4e
push 0
sub esi, eax
push 1
push esi
lea ecx, [esp + 0x54]
call fcn.10036690
cmp byte [ebx + 1], 0
jle 0x10036a48
inc ebx
mov al, byte [ebx]
cmp al, 0x7f
jne 0x10036a20
cmp dword [esp + 0x60], 0x10
mov esi, dword [esp + 0x4c]
jae 0x10036a5d
lea esi, [esp + 0x4c]
mov eax, dword [esp + 0x5c]
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], eax
mov ebx, eax
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
lea eax, [ecx + edx]
add eax, dword [ebp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x18]
add eax, ebx
test ecx, ecx
jle 0x10036a92
cmp ecx, eax
jbe 0x10036a92
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x10036a9a
mov dword [esp + 0x14], 0
mov eax, dword [edx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x10036b10
cmp eax, 0x100
jne 0x10036ade
cmp dword [esp + 0x24], 0
jbe 0x10036ade
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 1
push esi
push ecx
push edx
lea eax, [esp + 0x48]
push eax
push edi
call fcn.10037710
mov ecx, dword [eax]
add esp, 0x18
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
inc esi
dec ebx
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x30], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.10037890
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], 0
mov dword [ebp + 0x14], eax
add esp, 0x18
movsx ecx, byte [esp + 0x1c]
push ebx
push ecx
push esi
call fcn.1007e940
add esp, 0xc
test eax, eax
je 0x10036be1
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0x14]
sub eax, esi
inc eax
push edx
mov edx, dword [ebp + 0x10]
mov ebx, eax
lea eax, [ebx - 1]
push eax
push esi
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
push edi
call fcn.100377f0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x24]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
push edi
call fcn.10037890
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x14], edx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
add esp, 0x18
call edx
mov ecx, dword [ebp + 0x10]
movzx eax, ax
push 1
push eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
push edi
call fcn.10037890
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x28]
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push edi
call fcn.10037890
mov ecx, dword [eax]
add esi, ebx
add esp, 0x30
sub dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 0x30]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
push ebx
push 0x65
push esi
call fcn.1007e940
add esp, 0xc
test eax, eax
je 0x10036c94
mov edx, dword [ebp + 0x14]
sub eax, esi
inc eax
mov ebx, eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebx - 1]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
call fcn.100377f0
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x2c]
add esp, 0x1c
push edx
mov dword [ebp + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.10037890
mov edx, dword [eax]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x48]
add esp, 0x18
test byte [edx + 0x10], 4
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x2c], 0
mov ecx, 0x100ba0cc
jne 0x10036c69
mov ecx, 0x100ba0d0
mov edx, dword [eax]
push 1
push ecx
mov ecx, dword [eax + 4]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push edi
call fcn.10037710
mov ecx, dword [eax]
add esi, ebx
add esp, 0x18
sub dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 0x30]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ebx
push esi
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.100377f0
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebp + 0x2c]
add esp, 0x1c
push ecx
mov dword [ebp + 0x14], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
push edi
call fcn.10037890
mov ecx, dword [eax]
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x58]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [edx + 0x18], ebx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [ebp + 0x1c]
push edx
push eax
push ecx
push esi
push edi
mov dword [ebp + 0x14], eax
call fcn.10037890
add esp, 0x30
mov byte [esp + 0x90], 1
mov edi, 0x10
cmp dword [esp + 0x60], edi
jb 0x10036d24
mov eax, dword [esp + 0x4c]
push eax
call fcn.1007c941
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], 0
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x7c], edi
jb 0x10036d53
mov ecx, dword [esp + 0x68]
push ecx
call fcn.1007c941
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1007c94c
mov esp, ebp
pop ebp
ret