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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
mov edx, ecx
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xb4]
xor eax, eax
push esi
push edi
mov edi, 0x10059da0
mov dword [esp + 0x94], edx
mov ebp, edi
mov dword [esp + 0x6c], 0x10059da0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov byte [esp + 0x79], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov word [esp + 0x28], 0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov word [esp + 0x48], 0
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov word [esp + 0x60], 0
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 0x50], eax
cmp dword [ecx], eax
jne 0x1003e18a
mov eax, dword [edx + 8]
mov eax, dword [eax + 8]
inc dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
xor ecx, ecx
mov edx, dword [esp + 0xb8]
push 0x2c
push ecx
mov dword [esp + 0x98], ecx
mov ecx, edx
mov al, byte [edx + 0xc]
mov esi, dword [edx]
mov byte [esp + 0x1b], al
lea eax, [esp + 0xa0]
push eax
call fcn.10003dc0
mov ebx, dword [eax + 4]
add esi, dword [eax]
mov al, byte [esp + 0x13]
mov byte [esp + 0x78], al
test ebx, ebx
jle 0x1003e7bb
lea eax, [ebx + 1]
cmp dword [esp + 0x74], eax
jae 0x1003e1ed
push eax
lea ecx, [esp + 0x70]
call fcn.10003580
test eax, eax
je 0x1003e7bb
mov al, byte [esp + 0x78]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x6c]
push ebx
push esi
push eax
mov dword [esp + 0x7c], ebx
mov byte [eax + ebx], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x48]
xor ebx, ebx
mov dword [esp + 0x4c], 0
xor esi, esi
add esp, 0xc
mov dword [esp + 0x64], esi
mov dword [esp + 0x58], esi
mov byte [eax], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x8c], ebx
mov byte [eax], 0
mov al, byte [esp + 0xc4]
mov byte [esp + 0x88], al
xor al, al
mov byte [esp + 0x18], al
mov byte [esp + 0x84], al
xor eax, eax
mov byte [ebp], bl
push 0x26
push eax
mov dword [esp + 0x84], eax
lea ecx, [esp + 0x74]
lea eax, [esp + 0xa8]
push eax
call fcn.10003dc0
mov ebp, dword [eax]
mov esi, dword [eax + 4]
add ebp, dword [esp + 0x6c]
mov al, byte [esp + 0x13]
mov byte [esp + 0x28], al
test esi, esi
jle 0x1003e5b7
lea eax, [esi + 1]
cmp dword [esp + 0x24], eax
jae 0x1003e2a8
push eax
lea ecx, [esp + 0x20]
call fcn.10003580
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x1003e5b7
push esi
push ebp
push edi
mov dword [esp + 0x2c], esi
mov byte [edi + esi], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x1c]
xor dl, dl
call fcn.10009e70
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.msvcrt.dll_strncmp]
cmp esi, 4
jb 0x1003e350
push 4
push str.url
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x1003e350
mov al, byte [esp + 0x28]
lea ebp, [edi + 4]
add esi, 0xfffffffc
mov byte [esp + 0x48], al
test esi, esi
jle 0x1003e337
lea eax, [esi + 1]
cmp dword [esp + 0x44], eax
jae 0x1003e313
push eax
lea ecx, [esp + 0x40]
call fcn.10003580
test eax, eax
je 0x1003e337
mov eax, dword [esp + 0x3c]
push esi
push ebp
mov dword [esp + 0x48], esi
push eax
mov byte [eax + esi], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x88]
add esp, 0xc
inc eax
jmp 0x1003e255
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], 0
mov byte [eax], 0
mov eax, dword [esp + 0x7c]
inc eax
jmp 0x1003e255
cmp esi, 5
jb 0x1003e3f0
push 5
push str.itag
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x1003e3a7
push 5
push eax
lea ecx, [esp + 0x24]
call fcn.10003ec0
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
push ecx
push dword [esp + 0x24]
mov ecx, edi
call fcn.1000aac0
add esp, 8
test eax, eax
jne 0x1003e5ad
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], 0xffffffff
inc eax
jmp 0x1003e255
cmp esi, 5
jb 0x1003e3f0
push 5
push 0x10056970
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x1003e3f0
push 5
push eax
lea ecx, [esp + 0x24]
call fcn.10003ec0
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0xa8]
push ecx
push dword [esp + 0x24]
mov ecx, edi
call fcn.1000aa10
mov eax, dword [esp + 0x84]
add esp, 8
inc eax
jmp 0x1003e255
cmp esi, 4
jb 0x1003e439
push 4
push str.fps
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x1003e439
push 4
push eax
lea ecx, [esp + 0x24]
call fcn.10003ec0
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x8c]
push ecx
push dword [esp + 0x24]
mov ecx, edi
call fcn.1000aac0
mov eax, dword [esp + 0x84]
add esp, 8
inc eax
jmp 0x1003e255
cmp esi, 3
jb 0x1003e4bb
push 3
push 0x10056980
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x1003e4bb
mov al, byte [esp + 0x28]
lea ebp, [esi - 3]
mov dword [esp + 0x64], ebp
lea esi, [edi + 3]
mov byte [esp + 0x60], al
test ebp, ebp
jle 0x1003e4a0
lea eax, [ebp + 1]
cmp dword [esp + 0x5c], eax
jae 0x1003e47c
push eax
lea ecx, [esp + 0x58]
call fcn.10003580
test eax, eax
je 0x1003e4a0
mov eax, dword [esp + 0x54]
push ebp
push esi
push eax
mov dword [esp + 0x64], ebp
mov byte [eax + ebp], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x88]
add esp, 0xc
inc eax
jmp 0x1003e255
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
mov byte [eax], 0
mov eax, dword [esp + 0x7c]
inc eax
jmp 0x1003e255
cmp esi, 4
jb 0x1003e534
push 4
push str.sig
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x1003e534
mov al, byte [esp + 0x28]
lea ebx, [esi - 4]
mov byte [esp + 0x38], al
lea esi, [edi + 4]
test ebx, ebx
jle 0x1003e51e
lea eax, [ebx + 1]
cmp dword [esp + 0x34], eax
jae 0x1003e4fa
push eax
lea ecx, [esp + 0x30]
call fcn.10003580
test eax, eax
je 0x1003e51e
mov ebp, dword [esp + 0x2c]
push ebx
push esi
push ebp
mov dword [esp + 0x3c], ebx
mov byte [ebx + ebp], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x88]
add esp, 0xc
inc eax
jmp 0x1003e255
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov byte [eax], bl
mov eax, dword [esp + 0x7c]
inc eax
jmp 0x1003e255
cmp esi, 2
jb 0x1003e5ad
push 2
push 0x1005698c
push edi
call ebp
add esp, 0xc
test eax, eax
jne 0x1003e5ad
mov al, byte [esp + 0x28]
lea ebx, [esi - 2]
mov byte [esp + 0x38], al
lea esi, [edi + 2]
test ebx, ebx
jle 0x1003e59c
lea eax, [ebx + 1]
cmp dword [esp + 0x34], eax
jae 0x1003e573
push eax
lea ecx, [esp + 0x30]
call fcn.10003580
test eax, eax
je 0x1003e59c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push eax
mov dword [esp + 0x3c], ebx
mov byte [eax + ebx], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x88]
add esp, 0xc
mov byte [esp + 0x18], 1
inc eax
jmp 0x1003e255
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x18], 1
mov byte [eax], bl
mov eax, dword [esp + 0x7c]
inc eax
jmp 0x1003e255
mov byte [edi], 0
cmp dword [esp + 0x40], 0
mov dword [esp + 0x20], 0
je 0x1003e63a
cmp dword [esp + 0x4c], 0
je 0x1003e63a
mov esi, dword [esp + 0x64]
lea ecx, [esp + 0x3c]
test esi, esi
je 0x1003e64b
mov ebp, dword [esp + 0x54]
mov edx, ebp
call fcn.10008790
xor ecx, ecx
test eax, eax
sets cl
test ecx, ecx
jne 0x1003e66f
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x94]
push 0
push dword [esp + 0x88]
push dword [esp + 0x20]
push dword [esp + 0x94]
push 0
push dword [esp + 0xa0]
push dword [esp + 0x64]
push dword [eax]
lea eax, [esp + 0x5c]
push eax
call fcn.1003f350
test eax, eax
je 0x1003e63a
inc dword [esp + 0x50]
mov ecx, dword [esp + 0x90]
mov ebp, dword [esp + 0x2c]
inc ecx
jmp 0x1003e18c
mov edx, str.signature
call fcn.10008790
test eax, eax
jns 0x1003e5f2
mov edx, 0x10056744
lea ecx, [esp + 0x3c]
call fcn.10008790
test eax, eax
jns 0x1003e5f2
mov ebp, dword [esp + 0x54]
test ebx, ebx
jne 0x1003e685
mov byte [esp + 0x18], 1
mov byte [esp + 0x88], 1
jmp 0x1003e5f7
cmp byte [esp + 0x18], 0
je 0x1003e6b3
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x1003e678
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.10041300
test al, al
je 0x1003e678
mov byte [esp + 0x18], 0
mov byte [esp + 0x84], 1
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x1003e70d
or ebx, 1
mov dword [esp + 0x14], ebx
test esi, esi
jle 0x1003e6f9
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [esp + 0x68], eax
test eax, eax
je 0x1003e6f9
push esi
push ebp
push eax
mov byte [esi + eax], 0
call sub.msvcrt.dll_memcpy
mov ebp, dword [esp + 0x74]
add esp, 0xc
mov esi, dword [esp + 0x80]
mov edx, ebp
jmp 0x1003e75b
mov esi, dword [esp + 0x80]
mov ebp, 0x10059da0
mov dword [esp + 0x68], ebp
mov edx, ebp
jmp 0x1003e75b
or ebx, 2
push 0x19
mov dword [esp + 0x18], ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
mov dword [esp + 0x84], eax
add esp, 4
test esi, esi
je 0x1003e749
mov byte [esi + 9], 0
mov eax, dword [str.signature]
mov dword [esi], eax
mov eax, dword [0x1005673c]
mov dword [esi + 4], eax
mov al, byte [0x10056740]
mov byte [esi + 8], al
jmp 0x1003e755
mov esi, 0x10059da0
mov dword [esp + 0x80], esi
mov ebp, dword [esp + 0x68]
mov edx, esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
call fcn.10008aa0
add esp, 4
test bl, 2
je 0x1003e78e
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
cmp esi, 0x10059da0
je 0x1003e78e
push esi
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
add esp, 4
jmp 0x1003e794
mov esi, dword [sym.imp.msvcrt.dll_free]
test bl, 1
je 0x1003e5f7
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
cmp ebp, 0x10059da0
je 0x1003e5f7
push ebp
call esi
add esp, 4
jmp 0x1003e5f7
mov ebx, dword [esp + 0x6c]
mov byte [ebx], 0
cmp ebp, 0x10059da0
je 0x1003e7d8
push ebp
mov ebp, dword [sym.imp.msvcrt.dll_free]
call ebp
add esp, 4
jmp 0x1003e7de
mov ebp, dword [sym.imp.msvcrt.dll_free]
mov eax, dword [esp + 0x54]
cmp eax, 0x10059da0
je 0x1003e7ef
push eax
call ebp
add esp, 4
mov eax, dword [esp + 0x3c]
cmp eax, 0x10059da0
je 0x1003e800
push eax
call ebp
add esp, 4
cmp edi, 0x10059da0
je 0x1003e80e
push edi
call ebp
add esp, 4
cmp ebx, 0x10059da0
je 0x1003e81c
push ebx
call ebp
add esp, 4
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x10