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

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
mov edx, ecx
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x110]
xor eax, eax
push edi
mov edi, 0x10059da0
mov dword [esp + 0xa4], edx
mov ebp, edi
mov dword [esp + 0x40], 0x10059da0
mov esi, edi
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov word [esp + 0x4c], 0
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov word [esp + 0x6c], 0
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 0x78], edi
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov word [esp + 0xa0], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov word [esp + 0x5c], 0x100
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
cmp dword [ecx], eax
jne 0x1003e907
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
lea esp, [esp]
mov eax, dword [esp + 0x110]
cmp ecx, dword [eax + 4]
jae 0x1003e923
mov eax, dword [eax]
mov dl, byte [ecx + eax]
jmp 0x1003e925
xor dl, dl
movzx eax, dl
test byte [eax*2 + 0x10050110], 1
je 0x1003e935
inc ecx
jmp 0x1003e910
cmp dl, 0x7b
jne 0x1003f2e4
lea eax, [ecx + 1]
mov dword [esp + 0x74], eax
test eax, eax
js 0x1003f2e4
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x74]
mov ecx, dword [esp + 0x110]
xor ebx, ebx
mov dword [esp + 0x44], 0
xor esi, esi
mov dword [esp + 0x14], ebx
mov byte [eax], 0
lea eax, [esp + 0x18]
push eax
mov byte [edi], bl
lea eax, [esp + 0x54]
xor edi, edi
mov dword [esp + 0x68], ebx
push eax
mov dword [esp + 0x38], edi
mov byte [ebp], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x98], bl
mov dword [esp + 0x78], ebx
mov dword [esp + 0x8c], esi
call fcn.10007330
add esp, 8
mov byte [esp + 0x3c], al
test al, al
jle 0x1003f0d9
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
cmp esi, 3
jne 0x1003ea63
push 3
push 0x10054468
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003ea63
push dword [esp + 0x1c]
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0xbc]
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.1003a190
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov esi, eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp eax, 0x10059da0
je 0x1003ea17
push eax
call ebx
add esp, 4
mov eax, dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x48], eax
mov al, byte [esi + 0xc]
mov byte [esp + 0x4c], al
mov dword [esi], 0x10059da0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 0xb8]
cmp eax, 0x10059da0
je 0x1003f0a5
push eax
call ebx
add esp, 4
jmp 0x1003f0a5
cmp esi, 4
jne 0x1003eab3
push esi
push 0x10056748
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003eab3
mov eax, dword [esp + 0x110]
lea edx, [esp + 0x70]
push ecx
push dword [esp + 0x20]
mov ecx, dword [eax]
add ecx, dword [esp + 0x20]
call fcn.1000aac0
mov ebx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x1003f0a9
mov dword [esp + 0x70], 0xffffffff
jmp 0x1003f0a9
cmp esi, 0xd
jne 0x1003eaf2
push esi
push str.contentLength
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003eaf2
mov eax, dword [esp + 0x110]
lea edx, [esp + 0xa8]
push ecx
push dword [esp + 0x20]
mov ecx, dword [eax]
add ecx, dword [esp + 0x20]
call fcn.1000aa10
add esp, 8
jmp 0x1003f0a5
cmp esi, 0x11
jne 0x1003eb0f
push esi
push str.targetDurationSec
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1003f0a5
cmp esi, 3
jne 0x1003eb4e
push esi
push 0x100569b4
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003eb4e
mov eax, dword [esp + 0x110]
lea edx, [esp + 0x84]
push ecx
push dword [esp + 0x20]
mov ecx, dword [eax]
add ecx, dword [esp + 0x20]
call fcn.1000aac0
add esp, 8
jmp 0x1003f0a5
cmp esi, 2
jne 0x1003ebfc
push esi
push 0x100569b8
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003ebfc
push dword [esp + 0x1c]
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0xcc]
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.1003a190
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x60]
cmp eax, 0x10059da0
je 0x1003eba8
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x68], eax
mov al, byte [esi + 0xc]
mov byte [esp + 0x6c], al
mov dword [esi], 0x10059da0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x64], ebx
cmp eax, 0x10059da0
je 0x1003f0a9
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
jmp 0x1003f0a9
cmp esi, 3
jne 0x1003ec8c
push esi
push 0x10056744
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003ec8c
push dword [esp + 0x1c]
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0xdc]
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.1003a190
mov ebx, dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
mov esi, eax
cmp ebp, 0x10059da0
je 0x1003ec51
push ebp
call ebx
add esp, 4
mov eax, dword [esi + 8]
mov ebp, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x34], eax
mov al, byte [esi + 0xc]
mov byte [esp + 0x38], al
mov dword [esi], 0x10059da0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
jmp 0x1003ea4d
cmp esi, 1
jne 0x1003ed21
push esi
push 0x100569bc
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003ed21
push dword [esp + 0x1c]
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0xec]
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.1003a190
mov ebx, dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
mov esi, eax
cmp ebp, 0x10059da0
je 0x1003ece1
push ebp
call ebx
add esp, 4
mov eax, dword [esi + 8]
mov ebp, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x34], eax
mov al, byte [esi + 0xc]
mov byte [esp + 0x38], al
mov dword [esi], 0x10059da0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edi
mov byte [esp + 0x28], 1
jmp 0x1003ea4d
cmp esi, 6
jne 0x1003ed3a
push esi
push str.cipher
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1003ed5b
cmp esi, 0xf
jne 0x1003f0a5
push esi
push str.signatureCipher
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003f0a5
push dword [esp + 0x1c]
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0xfc]
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.1003a190
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x78]
cmp eax, 0x10059da0
je 0x1003ed94
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esi]
mov dword [esp + 0x78], eax
mov dword [esp + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x9c], eax
mov al, byte [esi + 0xc]
mov byte [esp + 0x27], al
mov byte [esp + 0xa0], al
mov dword [esi], 0x10059da0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov eax, dword [esp + 0xf8]
cmp eax, 0x10059da0
je 0x1003edef
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
xor eax, eax
push 0x26
push eax
mov dword [esp + 0x88], eax
lea ecx, [esp + 0x9c]
lea eax, [esp + 0xb8]
push eax
call fcn.10003dc0
mov esi, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0xa8], eax
mov al, byte [esp + 0x27]
mov byte [esp + 0x5c], al
test esi, esi
jle 0x1003f09a
lea eax, [esi + 1]
cmp dword [esp + 0x58], eax
jae 0x1003ee50
push eax
lea ecx, [esp + 0x54]
call fcn.10003580
mov ebx, dword [esp + 0x50]
test eax, eax
je 0x1003f09a
push esi
push dword [esp + 0xac]
mov dword [esp + 0x5c], esi
push ebx
mov byte [esi + ebx], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x50]
xor dl, dl
call fcn.10009e70
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
cmp esi, 4
jb 0x1003ef03
push 4
push str.url
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003ef03
mov al, byte [esp + 0x5c]
add esi, 0xfffffffc
mov byte [esp + 0x4c], al
test esi, esi
jle 0x1003eee7
lea eax, [esi + 1]
cmp dword [esp + 0x48], eax
jae 0x1003eec0
push eax
lea ecx, [esp + 0x44]
call fcn.10003580
test eax, eax
je 0x1003eee7
mov eax, dword [esp + 0x40]
lea ecx, [ebx + 4]
push esi
push ecx
mov dword [esp + 0x4c], esi
push eax
mov byte [eax + esi], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x8c]
add esp, 0xc
inc eax
jmp 0x1003edf1
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], 0
mov byte [eax], 0
mov eax, dword [esp + 0x80]
inc eax
jmp 0x1003edf1
cmp esi, 3
jb 0x1003ef94
push 3
push 0x10056980
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003ef94
mov al, byte [esp + 0x5c]
lea ecx, [esi - 3]
mov dword [esp + 0x14], ecx
lea esi, [ebx + 3]
mov byte [esp + 0x6c], al
test ecx, ecx
jle 0x1003ef76
lea eax, [ecx + 1]
cmp dword [esp + 0x68], eax
jae 0x1003ef52
push eax
lea ecx, [esp + 0x64]
call fcn.10003580
test eax, eax
je 0x1003ef76
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
push ecx
push esi
push eax
mov dword [esp + 0x70], ecx
mov byte [eax + ecx], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x8c]
add esp, 0xc
inc eax
jmp 0x1003edf1
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x60]
mov byte [eax], 0
mov eax, dword [esp + 0x80]
inc eax
jmp 0x1003edf1
cmp esi, 4
jb 0x1003f012
push 4
push str.sig
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003f012
mov al, byte [esp + 0x5c]
lea edi, [esi - 4]
mov byte [esp + 0x38], al
lea esi, [ebx + 4]
test edi, edi
jle 0x1003effb
lea eax, [edi + 1]
cmp dword [esp + 0x34], eax
jae 0x1003efdb
push eax
lea ecx, [esp + 0x30]
call fcn.10003580
mov ebp, dword [esp + 0x2c]
test eax, eax
je 0x1003effb
push edi
push esi
push ebp
mov dword [esp + 0x3c], edi
mov byte [edi + ebp], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x8c]
add esp, 0xc
inc eax
jmp 0x1003edf1
mov eax, dword [esp + 0x80]
xor edi, edi
mov dword [esp + 0x30], edi
inc eax
mov byte [ebp], 0
jmp 0x1003edf1
cmp esi, 2
jb 0x1003f08d
push 2
push 0x1005698c
push ebx
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x1003f08d
mov al, byte [esp + 0x5c]
lea edi, [esi - 2]
mov byte [esp + 0x38], al
lea esi, [ebx + 2]
test edi, edi
jle 0x1003f07e
lea eax, [edi + 1]
cmp dword [esp + 0x34], eax
jae 0x1003f059
push eax
lea ecx, [esp + 0x30]
call fcn.10003580
mov ebp, dword [esp + 0x2c]
test eax, eax
je 0x1003f07e
push edi
push esi
push ebp
mov dword [esp + 0x3c], edi
mov byte [edi + ebp], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x8c]
add esp, 0xc
mov byte [esp + 0x28], 1
inc eax
jmp 0x1003edf1
xor edi, edi
mov byte [ebp], 0
mov dword [esp + 0x30], edi
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x80]
inc eax
jmp 0x1003edf1
mov dword [esp + 0x54], 0
mov byte [ebx], 0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x54]
push eax
lea edx, [esp + 0x7c]
call fcn.10007330
add esp, 8
mov byte [esp + 0x3c], al
test al, al
jg 0x1003e9b2
mov esi, dword [esp + 0x84]
cmp dword [esp + 0x44], 0
je 0x1003f147
cmp dword [esp + 0x70], 0
je 0x1003f147
lea ecx, [esp + 0x40]
test ebx, ebx
je 0x1003f168
mov edx, dword [esp + 0x60]
call fcn.10008790
xor ecx, ecx
test eax, eax
sets cl
test ecx, ecx
jne 0x1003f18c
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0xa4]
push 0
push dword [esp + 0x94]
push dword [esp + 0x30]
push 1
push 0
push esi
push dword [esp + 0x88]
push dword [eax]
lea eax, [esp + 0x60]
push eax
call fcn.1003f350
test eax, eax
je 0x1003f147
inc dword [esp + 0x7c]
mov ecx, dword [esp + 0x110]
lea edx, [esp + 0x74]
call fcn.1003a120
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x60]
jmp 0x1003e910
mov edx, str.signature
call fcn.10008790
test eax, eax
jns 0x1003f107
mov edx, 0x10056744
lea ecx, [esp + 0x40]
call fcn.10008790
test eax, eax
jns 0x1003f107
test edi, edi
jne 0x1003f19a
mov byte [esp + 0x28], 1
jmp 0x1003f10c
cmp byte [esp + 0x28], 0
je 0x1003f1d4
mov eax, dword [esp + 0x118]
test eax, eax
je 0x1003f10c
mov edx, eax
lea ecx, [esp + 0x2c]
call fcn.10041300
mov ebp, dword [esp + 0x2c]
test al, al
je 0x1003f10c
mov byte [esp + 0x28], 0
mov byte [esp + 0x90], 1
test ebx, ebx
je 0x1003f22f
or dword [esp + 0x20], 1
test ebx, ebx
jle 0x1003f218
lea eax, [ebx + 0x10]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
mov dword [esp + 0x90], eax
add esp, 4
test edi, edi
je 0x1003f218
push ebx
push dword [esp + 0x64]
mov byte [edi + ebx], 0
push edi
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x94]
add esp, 0xc
mov edx, edi
jmp 0x1003f27e
mov ebx, dword [esp + 0x88]
mov edi, 0x10059da0
mov dword [esp + 0x8c], edi
mov edx, edi
jmp 0x1003f27e
or dword [esp + 0x20], 2
push 0x19
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
mov dword [esp + 0x8c], eax
add esp, 4
test ebx, ebx
je 0x1003f269
mov byte [ebx + 9], 0
mov eax, dword [str.signature]
mov dword [ebx], eax
mov eax, dword [0x1005673c]
mov dword [ebx + 4], eax
mov al, byte [0x10056740]
mov byte [ebx + 8], al
jmp 0x1003f275
mov ebx, 0x10059da0
mov dword [esp + 0x88], ebx
mov edi, dword [esp + 0x8c]
mov edx, ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
call fcn.10008aa0
mov eax, dword [esp + 0x24]
add esp, 4
test al, 2
je 0x1003f2b8
and eax, 0xfffffffd
mov dword [esp + 0x20], eax
cmp ebx, 0x10059da0
je 0x1003f2b8
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_free]
call ebx
mov eax, dword [esp + 0x24]
add esp, 4
jmp 0x1003f2be
mov ebx, dword [sym.imp.msvcrt.dll_free]
test al, 1
je 0x1003f10c
and eax, 0xfffffffe
mov dword [esp + 0x20], eax
cmp edi, 0x10059da0
je 0x1003f10c
push edi
call ebx
add esp, 4
jmp 0x1003f10c
mov ebx, dword [sym.imp.msvcrt.dll_free]
cmp esi, 0x10059da0
je 0x1003f2f8
push esi
call ebx
add esp, 4
mov eax, dword [esp + 0x78]
cmp eax, 0x10059da0
je 0x1003f309
push eax
call ebx
add esp, 4
cmp ebp, 0x10059da0
je 0x1003f317
push ebp
call ebx
add esp, 4
cmp edi, 0x10059da0
je 0x1003f325
push edi
call ebx
add esp, 4
mov ecx, dword [esp + 0x40]
cmp ecx, 0x10059da0
je 0x1003f337
push ecx
call ebx
add esp, 4
mov eax, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xfc
ret 0x10