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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10ae1e0]
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
mov ebx, eax
mov eax, dword [esi + 4]
or edi, 0xffffffff
test eax, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], edi
je 0x107d3f9
mov ecx, dword [ebx]
push 0
push 0
push eax
push ebx
call dword [ecx + 0x6c]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x107d41a
mov ecx, dword [ebx]
push eax
push ebx
call dword [ecx + 0x78]
cmp eax, edi
mov dword [ebp - 0x30], eax
jne 0x107d41a
mov dword [ebp - 0x34], 0x8004138d
jmp 0x107d73b
mov eax, dword [ebx]
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x3c]
push ecx
push ebx
call dword [eax + 0xb4]
test eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
jl 0x107d732
test ecx, ecx
je 0x107d442
mov ebx, dword [ecx + 4]
jmp 0x107d444
xor ebx, ebx
test ebx, ebx
jne 0x107d454
mov dword [ebp - 0x34], 0x80004003
jmp 0x107d732
mov eax, dword [esi + 0x14]
test eax, eax
je 0x107d466
cmp dword [esi + 0x18], 1
jne 0x107d466
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
mov ecx, ebx
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call fcn.0107955e
test eax, eax
mov dword [ebp - 0x34], eax
jl 0x107d72f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test eax, eax
mov dword [ebp - 0x34], eax
jl 0x107d72f
test byte [esi + 0x1e], 1
je 0x107d4b3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
cmp eax, 0x32
mov dword [ebp - 0x44], eax
jle 0x107d4b3
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14]
and dword [ebp - 0x38], 0
push 0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x107d722
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebx + 0x84]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
cmp eax, 0x412c2
mov dword [ebp - 0x34], eax
je 0x107d72b
test eax, eax
jl 0x107d72f
mov edi, dword [esi + 0x18]
xor ecx, ecx
cmp edi, 1
jbe 0x107d517
test edi, edi
jbe 0x107d517
mov edx, dword [ebx + 0x70]
mov eax, dword [esi + 0x14]
cmp dword [eax], edx
je 0x107d517
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x18]
jb 0x107d50a
cmp ecx, edi
jae 0x107d6e8
mov eax, dword [ebp - 0x50]
mov edi, dword [esi + 0x1c]
mov ecx, dword [eax]
and dword [ebp - 0x28], 0
push 0
lea edx, [ebp - 0x58]
push edx
push dword [ebx + 0x70]
and edi, 0xff
push dword [esi + 0xc]
mov dword [ebp - 0x58], 1
push eax
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x58]
cmp eax, 1
je 0x107d573
cmp eax, 5
je 0x107d573
cmp eax, 4
je 0x107d56b
cmp eax, 3
je 0x107d56b
cmp eax, 6
jne 0x107d6e8
mov eax, dword [ebx + 0x290]
jmp 0x107d579
lea eax, [ebx + 0x84]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x107d6e8
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
mov dword [ebp - 0x30], eax
je 0x107d6e8
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll__wcsupr]
dec edi
pop ecx
je 0x107d67a
dec edi
je 0x107d62f
dec edi
je 0x107d601
dec edi
je 0x107d62f
dec edi
je 0x107d601
push dword [esi + 0x48]
mov edi, dword [esi + 0x1c]
push dword [esi + 0x24]
mov ecx, esi
push dword [ebp - 0x30]
and edi, 0xfffffeff
push dword [ebp - 0x2c]
call fcn.0107b48f
test eax, eax
jne 0x107d64b
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.0107c4b2
test eax, eax
jne 0x107d6a4
push eax
lea eax, [ebp - 0x28]
push eax
or edi, 0x100
push edi
jmp 0x107d620
push dword [esi + 0x48]
mov ecx, esi
push dword [esi + 0x24]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.0107b48f
test eax, eax
jne 0x107d64b
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x1c]
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.0107c4b2
jmp 0x107d6a4
push dword [esi + 0x48]
xor edi, edi
push dword [esi + 0x24]
mov ecx, esi
push dword [ebp - 0x30]
mov dword [ebp - 0x54], edi
push dword [ebp - 0x2c]
call fcn.0107b48f
test eax, eax
je 0x107d654
mov dword [ebp - 0x28], 0x2710
jmp 0x107d6aa
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x1c]
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.0107c4b2
test eax, eax
je 0x107d6a4
cmp dword [ebp - 0x54], edi
jne 0x107d6a4
mov dword [ebp - 0x28], edi
jmp 0x107d6a4
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
mov eax, dword [esi + 0x24]
lea edx, [eax + ecx*2]
mov eax, dword [esi + 0x48]
sub eax, ecx
push eax
push edx
push dword [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.0107b48f
test eax, eax
je 0x107d6e8
mov dword [ebp - 0x28], 0x2710
cmp dword [ebp - 0x28], 0
je 0x107d6e8
mov edi, dword [ebp - 0x50]
mov eax, dword [edi]
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebx + 0x78]
push edi
call dword [eax + 0x74]
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push dword [ebx + 0x6c]
push edi
call dword [eax + 0x7c]
push dword [ebp - 0x28]
mov eax, dword [esi + 0x34]
push dword [ebx + 0x70]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push dword [ebx + 0x7c]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x10]
inc dword [ebp - 0x40]
test byte [esi + 0x1e], 1
je 0x107d4b7
cmp dword [ebp - 0x44], 0
je 0x107d4b7
add dword [ebp - 0x38], 0x64
mov eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0x44]
cmp eax, dword [ebp - 0x48]
jle 0x107d4b7
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
push eax
push ecx
mov dword [ebp - 0x48], eax
call dword [edx + 0x14]
jmp 0x107d4b7
mov dword [ebp - 0x4c], 1
jmp 0x107d72f
and dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x107d73b
call fcn.0107a231
test byte [esi + 0x1e], 1
je 0x107d74c
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
push 0x64
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x4c], 0
je 0x107d759
mov dword [ebp - 0x34], 0x412c4
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x34]
pop esi
pop ebx
call fcn.01028eec
leave
ret