Function at 0x10002bf5
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x20
mov ebx, 0x100342a8
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, eax
mov eax, dword [ebx + 0x24]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
mov eax, ebp
push eax
push eax
mov edx, dword [ebx + 0x24]
call fcn.10002e39
mov edx, dword [ebx + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
push ebp
push 0
call eax
movzx esi, word [ebp]
xor edx, edx
mov ecx, dword [ebx + 0x18]
test esi, esi
je 0x10002c60
inc edx
lea eax, [ebp + edx*2]
movzx esi, word [eax]
test esi, esi
jne 0x10002c52
jmp 0x10002c62
mov eax, ebp
movzx esi, word [eax - 2]
jmp 0x10002c75
xor esi, esi
mov word [ebp + edx*2], si
dec edx
movzx esi, word [ebp + edx*2 - 2]
cmp esi, 0x5c
jne 0x10002c68
cmp byte [ecx], 0
je 0x10002c92
xor esi, esi
movsx eax, byte [esi + ecx]
inc esi
mov word [ebp + edx*2], ax
inc edx
cmp byte [esi + ecx], 0
jne 0x10002c81
xor edx, edx
xor ecx, ecx
inc ecx
push edx
push 0x80
push 3
push edx
push ecx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002e28
mov eax, dword [ebx + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push esi
call eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, eax
mov eax, dword [ebx + 0x30]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
mov eax, ebp
push eax
push eax
mov edx, dword [ebx + 0x30]
call fcn.10002e39
mov edx, dword [ebx + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea ecx, [esp + 0x18]
mov dword [ecx], edx
push edx
push ecx
push dword [esp + 8]
push ebp
push esi
call eax
test eax, eax
je 0x10002e28
mov eax, dword [ebx + 0x44]
mov edx, dword [esp + 0x18]
add edx, ebp
mov dword [esp + 0x14], edx
lea edx, [ebp + eax]
mov ecx, dword [edx]
lea eax, [edx + 8]
mov esi, dword [edx + 4]
test ecx, ecx
jbe 0x10002d38
xor ebp, ebp
inc ebp
add dword [eax], esi
add eax, 4
cmp ebp, ecx
jb 0x10002d2e
mov eax, dword [ebx + 8]
lea esi, [edx + eax]
lea edx, [eax + edx + 1]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x10002e28
movsx edx, byte [esi]
lea ecx, [esi + edx + 1]
lea eax, [esi + edx]
mov dword [esp], eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10002e28
mov edx, dword [esp]
movsx ecx, byte [edx]
lea edi, [edx + ecx + 1]
lea eax, [edx + ecx]
mov dword [esp + 8], eax
push edi
call ebp
mov ebp, eax
test ebp, ebp
je 0x10002e28
mov edx, dword [esp + 8]
lea ecx, [esp]
movsx eax, byte [edx]
lea edi, [edx + eax + 0xc]
mov dword [ecx + 0x1c], edi
mov edi, dword [eax + edx + 4]
mov eax, dword [eax + edx + 8]
mov edx, dword [ebp + 0x3c]
mov dword [ecx + 4], eax
add ebp, dword [edx + ebp + 0x2c]
mov dword [ecx], 0
push ecx
push 0x40
push eax
push ebp
call esi
add esp, 0xfffffff4
mov eax, ebp
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
call fcn.10002e95
lea edx, [esp]
push edx
push dword [esp + 4]
push dword [esp + 0xc]
push ebp
call esi
mov ecx, dword [ebx + 0x38]
xor edx, edx
cmp byte [ecx], 0
je 0x10002e05
mov ecx, dword [ebx + 0x38]
movsx esi, byte [ecx + edx]
mov ecx, dword [esp + 0x14]
mov word [ecx + edx*2], si
inc edx
mov ecx, dword [ebx + 0x38]
cmp byte [ecx + edx], 0
jne 0x10002dec
mov ebx, dword [esp + 0x14]
xor ecx, ecx
add edi, ebp
lea eax, [esp + 8]
mov word [ebx + edx*2], cx
mov edx, dword [eax + 0x14]
add edx, dword [eax - 4]
mov dword [eax + 4], ebx
mov dword [eax], edx
mov byte [eax + 8], 1
push eax
call edi
pop eax
add esp, 0x20
pop ebp
pop ebx
pop edi
pop esi
ret