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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov edi, 0x10059da0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], edi
mov eax, 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x45], 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov word [esp + 0x34], 0x100
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov word [esp + 0x54], 0x100
mov ecx, dword [esp + 0x5c]
push 0
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov esi, dword [ecx]
mov bl, byte [ecx + 0xc]
push eax
call fcn.10003dc0
mov byte [esp + 0x44], bl
mov ebp, dword [eax + 4]
add esi, dword [eax]
test ebp, ebp
jle 0x1003d306
lea eax, [ebp + 1]
cmp dword [esp + 0x40], eax
jae 0x1003d07e
push eax
lea ecx, [esp + 0x3c]
call fcn.10003580
mov edi, dword [esp + 0x38]
test eax, eax
je 0x1003d306
push ebp
push esi
push edi
mov dword [esp + 0x48], ebp
mov byte [edi + ebp], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp ebp, 0xb
jb 0x1003d0b2
push 0xb
push str.flashvars_
push edi
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003d0b2
cmp byte [edi + ebp - 1], 0x22
je 0x1003d0bc
mov eax, dword [esp + 0x14]
inc eax
jmp 0x1003d034
push 0xb
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x64], 0
call fcn.10003ec0
mov eax, dword [esp + 0x3c]
lea ecx, [eax - 1]
cmp ecx, eax
jae 0x1003d0e8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
mov byte [eax + ecx], 0
lea ecx, [esp + 0x38]
call fcn.1000a870
mov edi, dword [esp + 0x38]
xor ebx, ebx
push 0x26
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
call fcn.10003dc0
mov ebp, dword [eax]
mov esi, dword [eax + 4]
add ebp, edi
mov al, byte [esp + 0x44]
mov byte [esp + 0x34], al
test esi, esi
jle 0x1003d2e6
lea eax, [esi + 1]
cmp dword [esp + 0x30], eax
jae 0x1003d13a
push eax
lea ecx, [esp + 0x2c]
call fcn.10003580
test eax, eax
je 0x1003d2e6
mov eax, dword [esp + 0x28]
push esi
push ebp
mov dword [esp + 0x34], esi
push eax
mov byte [esi + eax], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ebp, dword [sym.imp.msvcrt.dll__strnicmp]
cmp eax, 0xc
jb 0x1003d178
push 0xc
push str.fmt_url_map
push dword [esp + 0x30]
call ebp
add esp, 0xc
test eax, eax
je 0x1003d19b
mov eax, dword [esp + 0x2c]
cmp eax, 0x1b
jb 0x1003d195
push 0x1b
push str.url_encoded_fmt_stream_map
push dword [esp + 0x30]
call ebp
add esp, 0xc
test eax, eax
je 0x1003d2a5
inc ebx
jmp 0x1003d0f7
push 0xc
push 0
lea ecx, [esp + 0x30]
call fcn.10003ec0
xor dl, dl
lea ecx, [esp + 0x28]
call fcn.10009e70
cmp dword [esp + 0x5c], 0
jne 0x1003d1ce
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov eax, dword [eax + 8]
inc dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
mov edi, dword [esp + 0x10]
xor eax, eax
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov bl, byte [esp + 0x34]
push 0x2c
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push eax
call fcn.10003dc0
mov ebp, dword [eax + 4]
add esi, dword [eax]
mov byte [esp + 0x54], bl
test ebp, ebp
jle 0x1003d293
lea eax, [ebp + 1]
cmp dword [esp + 0x50], eax
jae 0x1003d219
push eax
lea ecx, [esp + 0x4c]
call fcn.10003580
test eax, eax
je 0x1003d293
mov eax, dword [esp + 0x48]
push ebp
push esi
mov dword [esp + 0x54], ebp
push eax
mov byte [eax + ebp], 0
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x58]
lea edx, [esp + 0x24]
mov esi, dword [esp + 0x54]
add esp, 8
mov ecx, esi
push ebx
call fcn.1000aac0
add esp, 8
test eax, eax
je 0x1003d289
cmp eax, ebx
jae 0x1003d289
cmp byte [esi + eax], 0x7c
jne 0x1003d289
inc eax
lea ecx, [esp + 0x48]
push eax
push 0
call fcn.10003ec0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x30]
lea eax, [esp + 0x64]
mov ecx, edi
push dword [esp + 0x78]
push eax
call fcn.1003f350
test eax, eax
je 0x1003d289
inc dword [edi + 0x14]
mov eax, dword [esp + 0x14]
inc eax
jmp 0x1003d1d4
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x4c], 0
jmp 0x1003d2f2
push 0x1b
push 0
lea ecx, [esp + 0x30]
call fcn.10003ec0
xor dl, dl
lea ecx, [esp + 0x28]
call fcn.10009e70
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x5c]
push 0
push 0
push eax
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.1003e0c0
push dword [esp + 0x5c]
add dword [esi + 0x14], eax
mov ecx, esi
call fcn.1003fc10
jmp 0x1003d309
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
mov esi, dword [esp + 0x10]
mov ecx, esi
mov byte [eax], 0
push dword [esp + 0x5c]
call fcn.1003fc10
jmp 0x1003d309
mov byte [edi], 0
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp eax, 0x10059da0
je 0x1003d320
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, 0x10059da0
je 0x1003d331
push eax
call esi
add esp, 4
cmp edi, 0x10059da0
je 0x1003d33f
push edi
call esi
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4