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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp ecx, esi
je 0x10003ee0
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x10003edf
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0x78]
lea eax, [eax + ecx + 0x78]
mov dword [ebp - 0x10], edx
cmp edx, esi
je 0x10003edf
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x10003edf
mov eax, dword [edx + ecx + 0x1c]
mov esi, dword [edx + ecx + 0x24]
push edi
mov edi, dword [edx + ecx + 0x20]
add eax, ecx
add esi, ecx
add edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], esi
test ebx, 0xffff0000
jne 0x10003d2a
and ebx, 0xffff
sub ebx, dword [edx + ecx + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x10003da1
mov edx, dword [edx + ecx + 0x18]
mov dword [ebp + 8], edx
test edx, edx
je 0x10003ede
lea esp, [esp]
mov eax, dword [edi]
dec dword [ebp + 8]
mov esi, ebx
add eax, ecx
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [esi]
jne 0x10003d70
test dl, dl
je 0x10003d6c
mov dl, byte [eax + 1]
cmp dl, byte [esi + 1]
jne 0x10003d70
add eax, 2
add esi, 2
test dl, dl
jne 0x10003d50
xor eax, eax
jmp 0x10003d75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10003d92
add dword [ebp + 0xc], 2
add edi, 4
cmp dword [ebp + 8], 0
jne 0x10003d40
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x10003ede
cmp edx, eax
ja 0x10003eea
mov esi, dword [ebp - 0x14]
add esi, edx
cmp eax, esi
jae 0x10003eea
lea esi, [eax + ecx]
push 0x10013824
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.msvcrt.dll_strstr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10003ede
mov al, byte [ebx + 1]
inc ebx
test al, al
je 0x10003ede
mov edi, ebx
sub edi, esi
cmp al, 0x23
jne 0x10003e11
inc ebx
cmp byte [ebx], 0
je 0x10003ede
push 0xa
push 0
push ebx
call dword [sym.imp.msvcrt.dll_strtoul]
mov ebx, eax
add esp, 0xc
and ebx, 0xffff
lea eax, [edi + 4]
push 2
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x10003ede
mov ecx, dword [ebp + 8]
push edi
push ecx
lea edx, [edi + 1]
push edx
push esi
push 0
call dword [sym.imp.msvcrt.dll_mbstowcs_s]
mov eax, dword [0x10013828]
mov dword [esi + edi*2], eax
mov cx, word [0x1001382c]
push 4
mov word [esi + edi*2 + 4], cx
mov edi, dword [sym.imp.msvcrt.dll__wcsnicmp]
push 0x1001380c
push esi
call edi
add esp, 0x20
test eax, eax
je 0x10003e78
push 4
push 0x10013818
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x10003ec0
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 8]
push edx
push esi
push eax
call fcn.10002b80
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x10003ec0
push esi
call dword [sym.imp.msvcrt.dll_free]
mov edi, dword [ebp - 8]
lea ecx, [edi + 1]
push 2
push ecx
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10003ede
mov eax, dword [ebp + 8]
lea edx, [edi + edi]
push edx
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call fcn.100038e0
add esp, 4
push esi
push ebx
push eax
call fcn.10003cb0
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
add eax, ecx
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret 0xc