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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x107b9e5
xor eax, eax
inc eax
jmp 0x107c038
push esi
push dword [edi + 0x18]
mov esi, dword [sym.imp.msvcrt.dll_free]
mov dword [edi], ebx
mov word [edi + 4], bx
call esi
push dword [edi + 0x1c]
call esi
push dword [ebp + 0x28]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
call esi
push dword [ebp + 0xc]
lea ebx, [eax + eax + 2]
call esi
push dword [ebp + 0x10]
lea ebx, [ebx + eax*2 + 2]
call esi
push dword [ebp + 0x18]
lea ebx, [ebx + eax*2 + 2]
call esi
push dword [ebp + 0x20]
lea ebx, [ebx + eax*2 + 2]
call esi
push dword [ebp + 0x1c]
lea ebx, [ebx + eax*2 + 2]
call esi
lea eax, [ebx + eax*2 + 0x350]
add eax, dword [ebp + 0x34]
mov ecx, 0x200
add eax, dword [ebp + 0x38]
add esp, 0x20
cmp eax, ecx
mov dword [ebp - 4], eax
jge 0x107ba5b
mov dword [ebp - 4], ecx
mov eax, ecx
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
pop ecx
jne 0x107ba7b
mov dword [edi], 0xfffffff6
push 3
jmp 0x107c036
mov ecx, dword [ebp - 4]
push dword [ebp + 0x28]
mov dword [ebx], ecx
mov dword [ebx + 8], 0x510
mov dword [ebx + 4], 0x140
mov word [edi + 0xc98], ax
mov word [edi + 0x2e], ax
mov dword [edi + 0x70], eax
mov dword [edi + 0x18], ebx
call esi
push dword [ebp + 0xc]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x118], eax
call esi
push dword [ebp + 0x10]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x114], eax
call esi
push dword [ebp + 0x18]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x110], eax
call esi
push dword [ebp + 0x20]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x10c], eax
call esi
push dword [ebp + 0x1c]
lea eax, [eax + eax + 2]
movzx eax, ax
mov dword [ebx + 0x108], eax
call esi
lea eax, [eax + eax + 2]
movzx ecx, ax
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 0x34]
add eax, ebx
mov dword [ebx + 0x120], eax
add eax, dword [ebx + 0x114]
mov edx, dword [ebp + 0x38]
mov dword [ebx + 0x124], eax
add eax, dword [ebx + 0x110]
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x128], eax
add eax, dword [ebx + 0x10c]
mov dword [ebx + 0x100], esi
mov dword [ebx + 0x12c], eax
add eax, dword [ebx + 0x118]
mov dword [ebx + 0x104], edx
mov dword [ebx + 0x130], eax
add eax, ecx
movzx ecx, word [ebp + 0x40]
mov dword [ebx + 0x134], eax
add eax, dword [ebx + 0x108]
mov dword [ebx + 0x30], ecx
movzx ecx, word [ebp + 0x44]
mov dword [ebx + 0x138], eax
add eax, esi
mov esi, dword [ebp + 0xa4]
mov dword [ebx + 0x13c], eax
add eax, edx
mov dword [ebx + 0xf8], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x94]
mov dword [ebx + 0xfc], 0x20a
mov dword [ebx + 0x28], eax
lea edi, [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
xor esi, esi
mov dword [ebx + 0xac], ecx
mov ecx, dword [ebp + 0x50]
mov dword [ebx + 0x90], esi
mov dword [ebx + 0x94], esi
cmp dword [ebp + 0x68], esi
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp + 0x54]
mov dword [ebx + 0xa8], ecx
je 0x107bbf1
mov ecx, dword [ebp + 0x64]
or byte [ebx + 0x3d], 0x80
mov dword [ebx + 0x90], ecx
mov ecx, dword [ebp + 0x60]
mov dword [ebx + 0x94], ecx
cmp dword [ebp + 0x88], esi
je 0x107bbfd
or byte [ebx + 0x3e], 0x80
cmp dword [ebp + 0x90], esi
je 0x107bc09
or byte [ebx + 0x3e], 0x40
cmp dword [ebp + 0x8c], esi
je 0x107bc15
or byte [ebx + 0x3e], 0x20
cmp dword [ebp + 0x58], esi
je 0x107bc1e
or byte [ebx + 0x3d], 0x20
cmp dword [ebp + 0x5c], esi
je 0x107bc27
or byte [ebx + 0x3d], 0x40
cmp dword [ebp + 0x6c], esi
je 0x107bc30
or dword [ebx + 0x3c], 0x40
xor ecx, ecx
mov cx, word [ebx + 0x2c]
push ecx
xor ecx, ecx
mov cx, word [ebx + 0x30]
push ecx
push eax
call fcn.0107c68b
test eax, eax
je 0x107bc4c
or dword [ebx + 0x3c], 0x40
xor eax, eax
mov ax, word [ebx + 0x2c]
push eax
xor eax, eax
mov ax, word [ebx + 0x30]
push eax
push dword [ebx + 0x28]
call fcn.0107c700
test eax, eax
je 0x107bc6a
or dword [ebx + 0x3c], 0x20
test byte [ebx + 0x3c], 0x60
je 0x107bc86
xor eax, eax
mov ax, word [ebx + 0x2c]
push eax
xor eax, eax
mov ax, word [ebx + 0x30]
push eax
push dword [ebx + 0x28]
call fcn.0107b2a3
cmp word [0x10d8d78], si
je 0x107bc93
or byte [ebx + 0x3d], 0x10
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc9c]
mov dword [ebx + 0x5c], eax
mov eax, dword [edi + 0xca0]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x68], esi
mov eax, dword [edi + 0xca4]
push ebx
push edi
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], esi
call fcn.0107b345
test eax, eax
je 0x107bcd7
push ebx
call fcn.0107b0d9
mov dword [ebp + 0x40], 2
jmp 0x107bfd0
mov ecx, dword [ebx + 0x114]
cmp ecx, esi
push 2
pop edx
je 0x107bd16
mov edi, dword [ebx + 0x120]
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x114]
mov ecx, dword [ebx + 0x120]
mov edi, dword [ebp + 8]
dec eax
shr eax, 1
and word [ecx + eax*2], 0
xor esi, esi
jmp 0x107bd25
mov eax, dword [ebx + 0x120]
mov dword [ebx + 0x114], edx
mov word [eax], si
mov ecx, dword [ebx + 0x110]
cmp ecx, esi
je 0x107bd61
mov edi, dword [ebx + 0x124]
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x110]
mov ecx, dword [ebx + 0x124]
mov edi, dword [ebp + 8]
dec eax
shr eax, 1
and word [ecx + eax*2], 0
xor esi, esi
jmp 0x107bd70
mov eax, dword [ebx + 0x124]
mov dword [ebx + 0x110], edx
mov word [eax], si
mov eax, dword [ebx + 0x10c]
cmp eax, esi
je 0x107bda7
shr eax, 1
push eax
push dword [ebp + 0x18]
push dword [ebx + 0x128]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0x10c]
mov ecx, dword [ebx + 0x128]
add esp, 0xc
dec eax
shr eax, 1
push 2
mov word [ecx + eax*2], si
pop edx
jmp 0x107bdb6
mov eax, dword [ebx + 0x128]
mov dword [ebx + 0x10c], edx
mov word [eax], si
mov eax, dword [ebx + 0x108]
cmp eax, esi
je 0x107bded
shr eax, 1
push eax
push dword [ebp + 0x20]
push dword [ebx + 0x134]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x134]
add esp, 0xc
dec eax
shr eax, 1
push 2
mov word [ecx + eax*2], si
pop edx
jmp 0x107bdfc
mov eax, dword [ebx + 0x134]
mov dword [ebx + 0x108], edx
mov word [eax], si
mov eax, dword [ebx + 0x11c]
cmp eax, esi
je 0x107be33
shr eax, 1
push eax
push dword [ebp + 0x1c]
push dword [ebx + 0x130]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0x11c]
mov ecx, dword [ebx + 0x130]
add esp, 0xc
shr eax, 1
push 2
mov word [ecx + eax*2 - 2], si
pop edx
jmp 0x107be42
mov eax, dword [ebx + 0x130]
mov dword [ebx + 0x11c], edx
mov word [eax], si
mov eax, dword [ebx + 0x118]
cmp eax, esi
je 0x107be76
shr eax, 1
push eax
push dword [ebp + 0x28]
push dword [ebx + 0x12c]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebx + 0x12c]
add esp, 0xc
shr eax, 1
mov word [ecx + eax*2 - 2], si
jmp 0x107be85
mov eax, dword [ebx + 0x12c]
mov dword [ebx + 0x118], edx
mov word [eax], si
mov ecx, dword [ebx + 0x100]
cmp ecx, esi
je 0x107beab
mov edi, dword [ebx + 0x138]
mov esi, dword [ebp + 0x2c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebx + 0x104]
cmp ecx, esi
je 0x107bed1
mov edi, dword [ebx + 0x13c]
mov esi, dword [ebp + 0x30]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x107bf06
mov eax, dword [ebx + 0xfc]
shr eax, 1
push eax
push dword [ebp + 0x14]
push dword [ebx + 0xf8]
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebx + 0xfc]
mov ecx, dword [ebx + 0xf8]
add esp, 0xc
shr eax, 1
mov word [ecx + eax*2 - 2], si
jmp 0x107bf0f
mov eax, dword [ebx + 0xf8]
mov word [eax], si
cmp dword [ebp + 0x84], esi
mov eax, dword [ebp + 0xa0]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp + 0x70]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x48]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebx + 0x7c], eax
movzx eax, word [ebp + 0x98]
mov dword [ebx + 0x74], eax
movzx eax, word [ebp + 0x9c]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 0x74]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x78]
mov dword [ebx + 0x14], eax
je 0x107bf5c
or byte [ebx + 0x3e], 4
cmp dword [ebp + 0x80], esi
je 0x107bf68
or byte [ebx + 0x3e], 8
cmp dword [ebp + 0x7c], esi
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x48], esi
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x58], esi
je 0x107bf87
or byte [ebx + 0x3d], 0xc
mov word [edi + 0x30], si
cmp word [edi + 0x2c], si
je 0x107bf91
or dword [ebx + 0x3c], 0x40
cmp word [edi + 0x30], si
jne 0x107bf9b
or byte [ebx + 0x3d], 4
mov eax, dword [edi + 0xc9c]
mov dword [ebx + 0x5c], eax
mov eax, dword [edi + 0xca0]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x68], esi
mov eax, dword [edi + 0xca4]
push edi
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x70], esi
call fcn.010786e2
test eax, eax
je 0x107bfe0
mov dword [ebp + 0x40], 3
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0x40]
pop ecx
mov dword [edi + 0x18], esi
jmp 0x107c037
xor eax, eax
inc eax
cmp word [edi + 0x30], si
mov dword [edi + 0xc7c], esi
mov dword [edi + 0x50], esi
mov dword [edi + 0x48], esi
mov dword [edi + 0x58], esi
mov dword [edi + 0x6c], esi
mov word [edi + 4], ax
mov dword [edi + 0x5c], esi
je 0x107c008
test byte [ebx + 0x3d], 8
je 0x107c037
mov eax, dword [edi + 0x18]
push dword [eax]
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
pop ecx
mov ecx, dword [esi]
push dword [ebp + 8]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0107b6fb
push 2
pop eax
pop esi
pop edi
pop ebx
leave
ret 0xa0