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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10047ca4]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov esi, ecx
jmp 0x10037000
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
test eax, eax
je 0x10037036
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10037036
cmp ecx, dword [esi + 0xf4]
jae 0x10037373
mov eax, dword [esi + 0x100]
mov edi, dword [ebp + 8]
jmp 0x100370cb
mov eax, dword [esi + 0x100]
mov edx, 2
test eax, eax
jne 0x100370b0
cmp dword [esi + 0xf4], ebx
je 0x1003705c
mov eax, dword [esi + 0xf0]
mov ecx, esi
push dword [eax]
call fcn.100392e0
mov eax, dword [esi + 0xfc]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x60]
mov ecx, edi
call dword [0x1004a1e8]
call edi
mov ecx, dword [esi + 0xfc]
mov ebx, eax
push ecx
mov edx, dword [ecx]
mov edi, dword [edx + 0x64]
mov ecx, edi
call dword [0x1004a1e8]
call edi
mov ecx, dword [esi + 0x100]
mov edx, eax
mov eax, ecx
test ecx, ecx
je 0x100370a8
cmp dword [ecx], 4
jne 0x100370a8
cmp edx, 3
je 0x10037373
test eax, eax
je 0x10037542
cmp dword [eax], 1
mov edi, dword [ebp + 8]
jne 0x100370c1
cmp dword [eax + 4], edi
jne 0x10037542
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov edx, dword [esi + 0xf0]
mov ecx, dword [edx + ecx*4]
mov dword [esp + 0x24], ecx
test byte [ecx + 0x18], 4
je 0x100370e5
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x14], ecx
mov eax, dword [eax]
cmp eax, 4
je 0x100373a6
cmp eax, 5
je 0x100373a6
cmp eax, 6
je 0x100373a6
mov edx, dword [edi + 0x7c]
mov ecx, dword [edi + 0x78]
mov eax, dword [esi + 0x10c]
mov dword [edx + ecx + 0x14], eax
cmp dword [esi + 0x10c], 2
mov edx, dword [ebp + 8]
je 0x1003725b
mov ecx, 1
mov dword [esp + 0x18], ecx
cmp dword [edx + 0x54], ecx
jb 0x1003725b
jmp 0x10037140
mov eax, dword [edx + 0xa4]
lea edi, [ecx*4]
mov dword [esp + 0x28], edi
mov ebx, dword [edi + eax]
mov eax, dword [edx + 0xa8]
mov eax, dword [edi + eax]
mov dword [esp + 0x10], eax
lea eax, [ecx - 1]
mov ecx, dword [edx + 0xb8]
movzx edi, ax
test ecx, ecx
je 0x1003717d
lea eax, [edi + edi*2]
shl eax, 5
mov eax, dword [eax + ecx + 0xc]
jmp 0x10037196
mov eax, dword [edx + 0xc4]
imul ecx, edi, 0x2548
mov eax, dword [ecx + eax + 0x434]
mov ecx, dword [edx + 0xb8]
test eax, 0x2000
je 0x100371ef
mov eax, dword [edx + 0x134]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + eax]
mov eax, dword [esp + 0x10]
mov dword [ebx + 8], ecx
mov dword [eax + 8], ecx
mov dword [ebx], 4
mov dword [ebx + 4], 0
mov dword [eax], 4
mov dword [eax + 4], 0
mov eax, dword [ecx]
mov dword [eax + 0x15c], 0
mov eax, dword [ecx]
mov dword [eax + 0x90], 0
mov dword [ecx + 4], 0
jmp 0x10037249
test ecx, ecx
je 0x100371ff
lea eax, [edi + edi*2]
shl eax, 5
mov eax, dword [eax + ecx + 0xc]
jmp 0x10037212
mov eax, dword [edx + 0xc4]
imul ecx, edi, 0x2548
mov eax, dword [ecx + eax + 0x434]
mov ecx, dword [esp + 0x10]
and al, 0x60
movzx eax, al
neg eax
mov dword [ebx], 0
mov dword [ebx + 8], 0
sbb eax, eax
mov dword [ebx + 4], 0x10000000
and eax, 0xfffffffb
mov dword [ecx], 0
add eax, 8
mov dword [ecx + 8], 0
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [edx + 0x54]
jbe 0x10037140
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
inc edi
xor ebx, ebx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
mov ecx, edi
mov dword [esp + 0x10], edi
cmp ecx, eax
jae 0x1003738c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100372ec
mov eax, dword [eax + edi*4]
cmp dword [eax + 4], 2
jne 0x1003731e
push dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, esi
push eax
push edx
call fcn.10037740
mov ebx, eax
test ebx, ebx
js 0x1003754f
mov edi, dword [esp + 0x10]
cmp ebx, 1
jne 0x1003731e
mov eax, dword [esp + 0x14]
mov ecx, esi
push 3
push 9
push str.duplicate
mov eax, dword [eax + edi*4]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10035140
test al, al
jne 0x1003732b
mov edx, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esp + 0x18]
inc edi
jmp 0x1003726d
mov eax, dword [esi + 0xf0]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0xc], ecx
jne 0x1003731e
mov ecx, dword [eax + 8]
cmp ecx, 1
je 0x1003730b
cmp ecx, 2
jne 0x1003731e
push eax
push edx
mov ecx, esi
call fcn.10037580
mov ebx, eax
test ebx, ebx
js 0x1003754f
mov edx, dword [ebp + 8]
inc edi
mov eax, dword [esp + 0x18]
jmp 0x1003726d
mov eax, dword [esp + 0x24]
test byte [eax + 0x18], 1
jne 0x10037364
mov dword [esi + 0x104], eax
mov eax, dword [esi + 0xfc]
mov byte [esi + 0xe4], 0
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x60]
mov ecx, edi
call dword [0x1004a1e8]
call edi
mov dword [esi + 0x104], 0
mov dword [esi + 0x100], 0
jmp 0x10037000
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100401a0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10037397
mov dword [ecx + 4], eax
mov dword [esi + 0x100], 0
jmp 0x1003754b
mov ecx, dword [edx]
xor ebx, ebx
mov edx, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esi + 0x10c], 8
cmp eax, edx
jbe 0x10037501
mov eax, dword [esi + 0xf0]
mov edx, dword [eax + edx*4]
mov dword [esp + 0x10], edx
cmp dword [edx + 0xc], ecx
jne 0x100374ee
cmp dword [edx + 8], 1
jne 0x100374ee
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov ecx, eax
mov dword [esp + 0x28], eax
inc eax
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [edx]
sub eax, ecx
cmp eax, 8
jne 0x10037474
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10037452
mov ecx, dword [esp + 0x20]
lea edx, [eax + 1]
lea edx, [ecx + edx*2]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea ecx, [esi + 0x58]
call fcn.1003a760
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x10037470
cmp ecx, 3
jne 0x10037470
push 8
push str.original
push dword [esp + 0x24]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10037470
mov ecx, dword [esp + 0x10]
jmp 0x100374ea
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
push eax
push dword [edx]
mov dword [esp + 0x38], 0
push dword [edx + 0x14]
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], 0
call fcn.1003a760
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov dword [esi + 0x100], eax
mov eax, dword [edi + 0x168]
mov dword [esi + 0x4c], eax
lea eax, [esp + 0x30]
push eax
push edi
call fcn.10036fe0
mov ebx, eax
test ebx, ebx
js 0x1003750f
cmp dword [esi + 0x10c], 8
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x4c], eax
jne 0x100374ee
mov dword [esi + 0x10c], 2
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x2c]
jb 0x100373d0
mov dword [esi + 0x10c], 8
test ebx, ebx
jns 0x10037567
test byte [0x1004926c], 2
je 0x1003754b
cmp dword [0x1004b69c], 0
je 0x1003754b
mov eax, dword [0x1004b69c]
push 0x67b
push ebx
push eax
mov eax, dword [0x1004b114]
push 0x19ec00
push eax
call fcn.10028190
add esp, 0x14
jmp 0x1003754b
cmp edx, 3
jne 0x10037373
test ebx, ebx
jns 0x10037567
cmp dword [esi + 0xf4], 0
je 0x10037567
mov eax, dword [esi + 0xf0]
mov ecx, esi
push dword [eax]
call fcn.100392e0
mov ecx, dword [esp + 0x3c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100401a0
mov esp, ebp
pop ebp
ret 8