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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov ebp, ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
xor ebx, ebx
cmp dword [eax + 0xc], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], edi
jbe 0x1003676a
jmp 0x10036602
xor edi, edi
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10039670
mov esi, eax
mov eax, dword [ebp + 0xf0]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esi + 4]
push ecx
push eax
mov dword [esp + 0x34], esi
call edx
mov ecx, dword [esi + 0x458]
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x24], edi
jbe 0x10036749
push edi
call fcn.10039670
cmp byte [esp + 0x54], 0
mov esi, eax
je 0x10036659
cmp dword [esi + 4], 1
jne 0x1003672b
cmp byte [esp + 0x58], 0
je 0x1003666a
cmp dword [esi + 4], 2
jne 0x1003672b
mov ecx, dword [esi + 0x138]
xor ebp, ebp
cmp dword [ecx + 0xc], ebp
jbe 0x1003672b
jmp 0x10036680
push ebp
call fcn.10039670
mov ecx, dword [eax + 8]
cmp dword [eax + 0xc], ecx
mov edx, dword [esp + 0x4c]
sete byte [esp + 0x13]
cmp ecx, edx
sete cl
cmp byte [eax + 0x10], 0
jne 0x10036715
test ebx, ebx
je 0x100366d4
mov edi, 1
cmp dword [ebx + 4], edi
je 0x100366b3
cmp dword [esi + 4], edi
je 0x100366d4
mov edi, dword [eax + 4]
cmp edi, 1
jne 0x10036715
cmp dword [ebx + 8], edx
je 0x100366c4
test cl, cl
jne 0x100366d4
cmp edi, 1
jne 0x10036715
test cl, cl
je 0x10036715
cmp byte [esp + 0x13], 0
je 0x10036711
cmp dword [esi + 4], 1
mov edi, dword [esp + 0x40]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
jne 0x10036711
test cl, cl
je 0x10036711
cmp byte [esp + 0x13], 0
jne 0x10036762
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x138]
add ebp, 1
cmp ebp, dword [ecx + 0xc]
jb 0x10036680
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x458]
add edi, 1
cmp edi, dword [ecx + 0xc]
mov dword [esp + 0x24], edi
jb 0x10036640
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
add eax, 1
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
jb 0x10036600
jmp 0x10036766
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x10036776
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret 8
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x454]
xor ebx, ebx
xor esi, esi
xor edi, edi
xor ebp, ebp
cmp dword [ecx + 0xc], ebx
mov dword [esp + 0x54], ebx
jbe 0x100367fe
mov eax, dword [esp + 0x54]
push eax
call fcn.10039670
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x14]
cmp ecx, dword [edx + 8]
jne 0x100367d6
mov ecx, dword [esp + 0x30]
cmp dword [eax], ecx
jne 0x100367c7
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x34]
cmp ecx, esi
jne 0x100367c3
mov edi, dword [esp + 0x38]
cmp dword [eax + 8], edi
je 0x100367f2
mov edi, ecx
jmp 0x100367ce
test esi, esi
jne 0x100367d6
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x454]
add eax, 1
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x54], eax
jb 0x10036791
jmp 0x10036802
mov esi, dword [eax]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov edi, ecx
jmp 0x10036802
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x28], 0
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x7c], esi
mov dword [eax + 0x70], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x80], edi
mov dword [eax + 0x84], ebx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], edx
mov byte [eax + 0x34], 0
mov dword [eax + 0x88], ebp
je 0x10036850
mov ecx, dword [edx + 0x14]
push 0
call fcn.10039670
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x8c], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x18]
push 0
call fcn.10039670
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
xor edi, edi
mov dword [esi + 0x90], ecx
mov dword [esi + 0x94], edi
mov ecx, dword [edx + 0x24]
push edi
call fcn.10039670
mov eax, dword [eax]
mov dword [esi + 0x9c], edi
pop edi
mov dword [esi + 0x98], eax
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x40
ret 8