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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
push 0x400
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x428]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
cmp edi, ebx
je 0x100038cc
call fcn.1000a250
cmp dword [0x1001776c], ebx
je 0x100034c8
lea ecx, [ebp - 0x428]
push ecx
call fcn.10002f50
add esp, 4
lea edi, [ebp - 0x428]
mov ecx, edi
call fcn.1000a9f0
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x100038cc
push edi
call fcn.1000aba0
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x100038b8
call fcn.1000ad40
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x1000389c
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov edx, 0x10b
cmp word [edi + 0x18], dx
jne 0x10003880
mov eax, dword [edi + 0x50]
xor ecx, ecx
push ecx
push eax
call fcn.1000ae30
mov esi, eax
mov eax, dword [edi + 0x54]
push 0
push eax
mov eax, ebx
cdq
push edx
push eax
mov eax, esi
cdq
push edx
push eax
mov dword [ebp - 4], esi
call fcn.1000afa0
mov ecx, dword [ebx + 0x3c]
xor edx, edx
add esp, 0x20
lea eax, [ecx + ebx + 0xf8]
mov dword [ebp - 0xc], 0
cmp dx, word [edi + 6]
jae 0x10003593
lea esi, [eax + 0x14]
mov edi, edi
mov eax, dword [esi - 4]
push 0
push eax
mov eax, dword [esi]
add eax, ebx
cdq
push edx
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 4]
cdq
push edx
push eax
call fcn.1000afa0
mov eax, dword [ebp - 0xc]
movzx ecx, word [edi + 6]
inc eax
add esp, 0x18
add esi, 0x28
mov dword [ebp - 0xc], eax
cmp eax, ecx
jb 0x10003560
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0x3c]
add esi, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 0x34]
mov dword [esi + 0x34], ebx
mov ecx, dword [esi + 0xa0]
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x100036a2
mov edx, dword [esi + 0xa4]
test edx, edx
je 0x100036a2
mov eax, dword [ebp - 4]
add edx, ecx
add edx, dword [ebp - 4]
add eax, ecx
mov dword [ebp - 0x10], eax
cmp eax, edx
jae 0x100036a2
jmp 0x100035e0
mov edx, dword [eax + 4]
test edx, edx
je 0x100036a2
mov ecx, dword [eax]
add ecx, dword [ebp - 4]
lea esi, [edx - 8]
shr esi, 1
lea edx, [eax + 8]
je 0x10003680
jmp 0x10003603
mov esi, dword [ebp - 8]
movzx eax, word [edx]
dec esi
mov dword [ebp - 8], esi
mov si, ax
shr si, 0xc
cmp si, 0xa
je 0x1000361d
cmp si, 3
jne 0x10003632
and eax, 0xfff
sub dword [eax + ecx], edi
movzx eax, word [edx]
and eax, 0xfff
add dword [eax + ecx], ebx
jmp 0x10003674
cmp si, 1
jne 0x10003659
and eax, 0xfff
mov esi, edi
shr esi, 0x10
sub word [eax + ecx], si
movzx eax, word [edx]
mov esi, ebx
and eax, 0xfff
shr esi, 0x10
add word [eax + ecx], si
jmp 0x10003674
cmp si, 2
jne 0x10003674
and eax, 0xfff
sub word [eax + ecx], di
movzx eax, word [edx]
and eax, 0xfff
add word [eax + ecx], bx
add edx, 2
cmp dword [ebp - 8], 0
jne 0x10003600
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xa0]
add edx, dword [ebp - 4]
add eax, dword [eax + 4]
add edx, dword [ecx + 0xa4]
mov dword [ebp - 0x10], eax
mov esi, ecx
cmp eax, edx
jb 0x100035e0
mov eax, dword [esi + 0x80]
test eax, eax
je 0x10003801
cmp dword [esi + 0x84], 0
je 0x10003801
add eax, dword [ebp - 4]
cmp dword [eax], 0
mov dword [ebp - 8], eax
je 0x10003801
jmp 0x100036d3
mov eax, dword [ebp - 8]
mov edi, dword [eax + 0xc]
add edi, dword [ebp - 4]
push 0x104
push edi
call fcn.1000fb86
mov ebx, eax
lea eax, [ebx + 1]
push 2
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100037e9
mov edx, dword [ebp - 0x10]
push ebx
push edi
push edx
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll_mbstowcs_s]
mov edi, dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x14
push 4
push 0x1001380c
push esi
call edi
add esp, 0xc
test eax, eax
je 0x1000373e
push 4
push 0x10013818
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x10003785
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push esi
push edx
call fcn.10002b80
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10003785
push esi
call dword [sym.imp.msvcrt.dll_free]
mov edi, dword [ebp - 0x14]
add esp, 4
lea eax, [edi + 1]
push 2
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x100037e9
lea ecx, [edi + edi]
push ecx
push ebx
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call fcn.100038e0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x100037df
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
test ebx, ebx
jne 0x100037a3
mov ebx, dword [eax + 0x10]
add ebx, dword [ebp - 4]
mov edi, dword [eax + 0x10]
mov eax, dword [ebx]
add edi, dword [ebp - 4]
test eax, eax
je 0x100037df
jmp 0x100037b7
mov ecx, dword [ebp - 0x10]
push esi
test eax, eax
jns 0x100037c3
and eax, 0xffff
jmp 0x100037ca
mov edx, dword [ebp - 4]
lea eax, [eax + edx + 2]
push eax
push ecx
call fcn.10003cb0
add ebx, 4
mov dword [edi], eax
mov eax, dword [ebx]
add edi, 4
test eax, eax
jne 0x100037b4
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp - 8]
add eax, 0x14
cmp dword [eax], 0
mov dword [ebp - 8], eax
jne 0x100036d0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x1000387a
cmp dword [esi + 0x7c], 0
je 0x1000387a
add ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
cmp dword [ecx + 0x14], eax
jbe 0x1000387a
mov edi, edi
mov edx, dword [ecx + 0x1c]
lea edi, [edx + eax*4]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax]
test eax, eax
je 0x1000386e
mov edx, dword [esi + 0x78]
cmp edx, eax
ja 0x1000386e
mov ecx, dword [esi + 0x7c]
add ecx, edx
cmp eax, ecx
jae 0x1000386b
mov eax, dword [ebp - 4]
mov edx, dword [edi + eax]
cmp edx, dword [edi + ebx]
je 0x1000386b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
push ecx
mov ecx, dword [edx + 0x10]
add ecx, dword [ebp - 8]
push ecx
push eax
call fcn.10003cb0
test eax, eax
je 0x1000386b
mov edx, dword [ebp - 4]
sub eax, ebx
mov dword [edi + edx], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0x14]
jb 0x10003820
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov eax, ebx
cdq
push edx
push eax
call fcn.10001560
add esp, 8
test eax, eax
jns 0x1000389c
push 0x307
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, esi
call fcn.100011b0
test eax, eax
jns 0x100038b2
push 0x307
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0x18]
call fcn.100011b0
test eax, eax
jns 0x100038cc
push 0x307
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret