Function at 0x1008ec20
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
mov eax, 0x14
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], eax
mov ecx, 0xe
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 0x46c8c]
mov dword [esp + 0x48], 0xa
mov dword [esp + 0x4c], 0x63707274
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], 0x24
mov dword [esp + 0x58], 0x64657363
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 0x28
mov dword [esp + 0x64], 0x77747074
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], 0x626b7074
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], 0x72545243
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 0x67545243
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], 0x62545243
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 0x7258595a
mov dword [esp + 0xa4], esi
mov dword [esp + 0xac], 0x6758595a
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb8], 0x6258595a
mov dword [esp + 0xbc], esi
mov ebx, 0x63757276
mov dword [esp + 0x44], 0x1000000
cmp eax, esi
je 0x1008ed67
mov ecx, dword [ebp + 0x46c90]
push 2
push esi
push 0x20000
push ecx
call eax
add esp, 0x10
test eax, eax
je 0x1008ed67
push 0x102419c0
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], 6
call fcn.101525f9
fld qword [ebp + 0x408b0]
push esi
push esi
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, ebp
fld qword [ebp + 0x408a8]
fstp qword [esp]
call fcn.10080dc0
cmp dword [ebp + 0x94], 1
lea esi, [ebp + 0x19c]
mov ecx, 0xc
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
je 0x1008edc0
cmp dword [ebp + 0x408fc], 0
jne 0x1008edc0
mov eax, dword [ebp + 0x40910]
cmp eax, 1
jl 0x1008edc0
cmp eax, 5
jg 0x1008edc0
xor eax, eax
jmp 0x1008edc5
mov eax, 1
or dword [ebp + 0x409d4], eax
jne 0x1008f123
push 1
push 0x400
mov ecx, ebp
call fcn.10072ba0
push str.convert_to_rgb__
push eax
mov ecx, ebp
mov dword [ebp + 0x409e8], eax
call fcn.100721a0
mov edi, dword [ebp + 0x409e8]
mov ecx, 0x14
mov esi, 0x1017dea0
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x40910], 5
jne 0x1008ee19
mov eax, dword [ebp + 0x409e8]
mov ecx, dword [eax + 0x14]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 0x409e8]
mov dword [edx], 0xfc
xor ecx, ecx
test ecx, ecx
je 0x1008ee42
xor edx, edx
cmp ecx, 1
setle dl
dec edx
and edx, 0xf3f3e6bd
add edx, 0x64657363
jmp 0x1008ee47
mov edx, 0x74657874
mov eax, dword [ebp + 0x409e8]
mov esi, dword [eax]
shr esi, 2
mov dword [eax + esi*4], edx
mov edx, dword [ebp + 0x409e8]
mov esi, dword [edx]
lea eax, [ecx + ecx*2]
add eax, eax
add eax, eax
mov dword [esp + eax + 0x50], esi
mov eax, dword [esp + eax + 0x54]
add eax, 3
and eax, 0xfffffffc
add eax, esi
inc ecx
mov dword [edx], eax
cmp ecx, dword [esp + 0x48]
jb 0x1008ee27
mov edi, dword [ebp + 0x409e8]
sub edi, 0xffffff80
mov ecx, 0x1f
lea esi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x40910]
mov eax, dword [ecx*4 + 0x1028e874]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1008eea1
mov ecx, dword [ebp + 0x409e8]
fld qword [0x1023aaf0]
mov edx, dword [esp + 0x5c]
sub eax, esi
inc eax
shr edx, 2
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 0x409e8]
mov ecx, dword [0x1017de90]
mov eax, dword [esp + 0x68]
lea eax, [edx + eax + 8]
mov dword [eax], ecx
mov edx, dword [0x1017de94]
mov dword [eax + 4], edx
mov ecx, dword [0x1017de98]
mov dword [eax + 8], ecx
fdiv qword [ebp + 0x408d0]
fadd qword [0x1023a7b8]
call fcn.10153880
movsx ecx, ax
mov eax, dword [ebp + 0x409e8]
add eax, dword [esp + 0x80]
xor edx, edx
mov dword [eax], ebx
mov dword [eax + 4], edx
shl ecx, 0x10
mov esi, 1
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x409e8]
add eax, dword [esp + 0x8c]
push 3
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x409e8]
add eax, dword [esp + 0x9c]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x40910]
mov ecx, dword [eax*4 + 0x1028e860]
lea edx, [esp + 0xfc]
push edx
push ecx
mov ecx, ebp
call fcn.10081170
fldz
fld qword [0x10178cc0]
mov dword [esp + 0x24], 0
fld qword [0x1023a7b8]
mov edx, 0x1017de50
lea esi, [esp + 0xa4]
lea ecx, [esp + 0x100]
mov dword [esp + 0x34], 3
fld qword [ecx - 8]
mov edi, dword [esi]
fmul qword [edx - 8]
mov ebx, dword [ebp + 0x409e8]
fnstcw word [esp + 0x32]
shr edi, 2
movzx eax, word [esp + 0x32]
fadd st(3)
fld qword [edx]
add edi, dword [esp + 0x24]
fmul qword [ecx]
or eax, 0xc00
mov dword [esp + 0x28], eax
add ecx, 0x18
add esi, 0xc
faddp st(1)
fld qword [ecx - 0x10]
fmul qword [edx + 8]
faddp st(1)
fmul st(2)
fadd st(1)
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov dword [ebx + edi*4 + 8], eax
mov ebx, 1
sub dword [esp + 0x34], ebx
fldcw word [esp + 0x32]
jne 0x1008efa0
add dword [esp + 0x24], ebx
add edx, 0x18
cmp edx, 0x1017de98
jl 0x1008ef8a
mov edi, dword [sym.imp.WS2_32.dll_htonl]
fstp st(2)
fstp st(0)
xor esi, esi
fstp st(0)
mov ecx, dword [ebp + 0x409e8]
mov edx, dword [esi + ecx]
push edx
call edi
mov ecx, dword [ebp + 0x409e8]
mov dword [esi + ecx], eax
add esi, 4
cmp esi, 0x400
jb 0x1008f021
mov edx, dword [ebp + 0x409e8]
mov ecx, dword [str.auto_generated_by_dcraw]
mov eax, dword [esp + 0x50]
lea eax, [edx + eax + 8]
mov dword [eax], ecx
mov edx, dword [0x1017de34]
mov dword [eax + 4], edx
mov ecx, dword [0x1017de38]
mov dword [eax + 8], ecx
mov edx, dword [0x1017de3c]
mov dword [eax + 0xc], edx
mov ecx, dword [0x1017de40]
mov dword [eax + 0x10], ecx
mov edx, dword [0x1017de44]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x40910]
mov ecx, dword [eax*4 + 0x1028e874]
mov edx, dword [ebp + 0x409e8]
mov eax, dword [esp + 0x5c]
lea edx, [edx + eax + 0xc]
nop
mov al, byte [ecx]
mov byte [edx], al
add ecx, ebx
add edx, ebx
test al, al
jne 0x1008f0a0
fldz
lea ebx, [esp + 0xc8]
xor edx, edx
cmp dword [ebp + 0x94], 0
jle 0x1008f116
mov ecx, dword [ebp + 0x40910]
mov esi, dword [ecx*4 + 0x1028e860]
mov edi, dword [ebp + 0x94]
mov ecx, ebx
lea eax, [ebp + 0x1ac]
fst dword [ecx]
add eax, 4
fld dword [eax - 0x14]
add ecx, 4
sub edi, 1
fmul qword [esi + edx]
fadd dword [ecx - 4]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [eax - 4]
fmul qword [esi + edx + 8]
faddp st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [eax + 0xc]
fmul qword [esi + edx + 0x10]
faddp st(1)
fstp dword [ecx - 4]
jne 0x1008f0db
add edx, 0x18
add ebx, 0x10
cmp edx, 0x48
jl 0x1008f0b7
fstp st(0)
mov edx, dword [ebp + 0x409e4]
push 0x20000
push 0
push edx
call fcn.101527d0
mov esi, dword [ebp + 0x40860]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x24], 0
cmp ax, word [ebp + 0xac]
jae 0x1008f290
fldz
xor ecx, ecx
xor ebx, ebx
cmp cx, word [ebp + 0xae]
jae 0x1008f276
cmp dword [ebp + 0x409d4], 0
jne 0x1008f206
xor eax, eax
fst dword [esp + 0x40]
cmp dword [ebp + 0x94], eax
fst dword [esp + 0x3c]
fst dword [esp + 0x38]
jle 0x1008f1d4
mov ecx, dword [ebp + 0x94]
movzx edx, word [esi + eax*2]
mov dword [esp + 0x28], edx
inc eax
cmp eax, ecx
fild dword [esp + 0x28]
fld dword [esp + eax*4 + 0xc4]
fmul st(1)
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + eax*4 + 0xd4]
fmul st(1)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fmul dword [esp + eax*4 + 0xe4]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
jl 0x1008f192
xor edi, edi
fld dword [esp + edi*4 + 0x38]
call fcn.10153880
cmp eax, 0xffff
jge 0x1008f1f5
test eax, eax
jge 0x1008f1ee
xor eax, eax
jmp 0x1008f1fa
cmp eax, 0xffff
jl 0x1008f1fa
mov eax, 0xffff
mov word [esi + edi*2], ax
inc edi
cmp edi, 3
jl 0x1008f1d6
jmp 0x1008f233
cmp dword [ebp + 0x408fc], 0
je 0x1008f233
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x98]
and ecx, 7
add ecx, ecx
mov eax, ebx
and eax, 1
or ecx, eax
add ecx, ecx
shr edx, cl
and edx, 3
mov ax, word [esi + edx*2]
mov word [esi], ax
xor eax, eax
cmp dword [ebp + 0x94], eax
jle 0x1008f263
xor edx, edx
movzx ecx, word [esi + eax*2]
mov edi, dword [ebp + 0x409e4]
shr ecx, 3
add ecx, edx
inc dword [edi + ecx*4]
lea ecx, [edi + ecx*4]
inc eax
add edx, 0x2000
cmp eax, dword [ebp + 0x94]
jl 0x1008f23f
movzx edx, word [ebp + 0xae]
inc ebx
add esi, 8
cmp ebx, edx
jl 0x1008f169
mov eax, dword [esp + 0x24]
movzx ecx, word [ebp + 0xac]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x1008f158
fstp st(0)
cmp dword [ebp + 0x94], 4
jne 0x1008f2ac
cmp dword [ebp + 0x40910], 0
je 0x1008f2ac
mov dword [ebp + 0x94], 3
cmp dword [ebp + 0x408fc], 0
je 0x1008f2c8
cmp dword [ebp + 0x98], 0
je 0x1008f2c8
mov dword [ebp + 0x94], 1
mov eax, dword [ebp + 0x46c8c]
test eax, eax
je 0x1008f302
mov edx, dword [ebp + 0x46c90]
push 2
push 1
push 0x20000
push edx
call eax
add esp, 0x10
test eax, eax
je 0x1008f302
push 0x102419c0
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 6
call fcn.101525f9
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret