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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
movsx esi, byte [0x100e1ac6]
call fcn.10001380
movsx ecx, al
add esi, ecx
call fcn.10001350
movsx edi, al
shl edi, 3
call fcn.10001340
movsx edx, al
imul edi, edx
add esi, edi
movsx ecx, byte [0x100e1ac5]
mov eax, esi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
je 0x100187fb
cmp dword [ebp - 4], 0
jne 0x100185f9
xor eax, eax
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], eax
jmp 0x10018601
xorps xmm0, xmm0
movlpd qword [ebp - 0x70], xmm0
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
call fcn.100710a0
sub esp, 8
movsd qword [esp], xmm0
call fcn.10004020
add esp, 8
mov esi, eax
movsx edi, byte [0x100e1ac6]
call fcn.10001380
movsx ecx, al
add edi, ecx
call fcn.10001350
movsx edx, al
imul ebx, edx, 3
call fcn.10001340
movsx eax, al
imul ebx, eax
add edi, ebx
movsx ecx, byte [0x100e1ac5]
mov eax, edi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
imul esi, eax
test esi, esi
je 0x100187fb
mov eax, 4
test eax, eax
je 0x100187fb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
movsx esi, byte [0x100e1ac6]
call fcn.10001380
movsx edx, al
add esi, edx
call fcn.10001350
movsx eax, al
imul edi, eax, 9
call fcn.10001340
movsx ecx, al
imul edi, ecx
add esi, edi
movsx ecx, byte [0x100e1ac5]
mov eax, esi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
je 0x100187fb
cmp dword [ebp - 4], 0
jne 0x100186db
xor eax, eax
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], eax
jmp 0x100186e3
xorps xmm0, xmm0
movlpd qword [ebp - 0x78], xmm0
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
call fcn.100710a0
sub esp, 8
movsd qword [esp], xmm0
call fcn.10004020
add esp, 8
mov esi, eax
movsx edi, byte [0x100e1ac6]
call fcn.10001380
movsx ecx, al
add edi, ecx
call fcn.10001350
movsx ebx, al
shl ebx, 2
call fcn.10001340
movsx edx, al
imul ebx, edx
add edi, ebx
movsx ecx, byte [0x100e1ac5]
mov eax, edi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
imul esi, eax
test esi, esi
je 0x100187fb
mov eax, 5
test eax, eax
je 0x100187fb
mov dword [ebp - 0x14], 0
jmp 0x10018769
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
movsx esi, byte [0x100e1ac6]
call fcn.10001380
movsx edx, al
add esi, edx
call fcn.10001350
movsx eax, al
imul edi, eax, 5
call fcn.10001340
movsx ecx, al
imul edi, ecx
add esi, edi
movsx ecx, byte [0x100e1ac5]
mov eax, esi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
mov dword [ebp - 0x30], eax
cvtsi2sd xmm0, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100db640]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10004020
add esp, 8
cmp dword [ebp - 0x14], eax
jge 0x100187fb
mov dword [ebp - 0x18], 0
jmp 0x100187e6
cmp dword [ebp - 0x18], 0x14
jae 0x100187f6
mov eax, dword [ebp - 0x10]
jmp 0x10018b68
jmp 0x10018760
mov edx, dword [ebp - 4]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x4c], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x1c], 0
jmp 0x1001885e
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
movsx esi, byte [0x100e1ac6]
call fcn.10001380
movsx edx, al
add esi, edx
call fcn.10001350
movsx eax, al
imul edi, eax, 6
call fcn.10001340
movsx ecx, al
imul edi, ecx
add esi, edi
movsx ecx, byte [0x100e1ac5]
mov eax, esi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
mov dword [ebp - 0x34], eax
cvtsi2sd xmm0, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100db640]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10004020
add esp, 8
cmp dword [ebp - 0x1c], eax
jge 0x10018ac7
mov dword [ebp - 8], 0
jmp 0x100188df
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x14]
jae 0x10018ac2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10018b70
add esp, 8
mov dword [ebp - 0x60], eax
movsx esi, byte [0x100e1ac6]
call fcn.10001380
movsx edx, al
add esi, edx
call fcn.10001350
movsx edi, al
call fcn.10001340
movsx eax, al
imul edi, eax
add esi, edi
movsx ecx, byte [0x100e1ac5]
mov eax, esi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
je 0x10018abd
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 0xc]
jne 0x10018982
xor ecx, ecx
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], ecx
jmp 0x1001898a
xorps xmm0, xmm0
movlpd qword [ebp - 0x80], xmm0
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
call fcn.100710a0
sub esp, 8
movsd qword [esp], xmm0
call fcn.10004020
add esp, 8
mov esi, eax
movsx edi, byte [0x100e1ac6]
call fcn.10001380
movsx edx, al
add edi, edx
call fcn.10001350
movsx ebx, al
shl ebx, 1
call fcn.10001340
movsx eax, al
imul ebx, eax
add edi, ebx
movsx ecx, byte [0x100e1ac5]
mov eax, edi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
imul esi, eax
test esi, esi
je 0x10018abd
mov eax, 7
test eax, eax
je 0x10018abd
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x64]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
jmp 0x10018a2b
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
movsx esi, byte [0x100e1ac6]
call fcn.10001380
movsx edx, al
add esi, edx
call fcn.10001350
movsx eax, al
imul edi, eax, 3
call fcn.10001340
movsx ecx, al
imul edi, ecx
add esi, edi
movsx ecx, byte [0x100e1ac5]
mov eax, esi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
mov dword [ebp - 0x40], eax
cvtsi2sd xmm0, dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100db640]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10004020
add esp, 8
cmp dword [ebp - 0x20], eax
jge 0x10018abd
mov dword [ebp - 0x24], 0
jmp 0x10018aa8
cmp dword [ebp - 0x24], 2
jae 0x10018ab8
mov eax, dword [ebp - 0x10]
jmp 0x10018b68
jmp 0x10018a22
jmp 0x100188d6
jmp 0x10018855
mov dword [ebp - 0x28], 0
jmp 0x10018ad9
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
movsx esi, byte [0x100e1ac6]
call fcn.10001380
movsx eax, al
add esi, eax
call fcn.10001350
movsx ecx, al
imul edi, ecx, 3
call fcn.10001340
movsx edx, al
imul edi, edx
add esi, edi
movsx ecx, byte [0x100e1ac5]
mov eax, esi
xor edx, edx
div ecx
movsx edx, byte [0x100e1ac8]
sub eax, edx
mov dword [ebp - 0x44], eax
cvtsi2sd xmm0, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100db640]
sub esp, 8
movsd qword [esp], xmm0
call fcn.10004020
add esp, 8
cmp dword [ebp - 0x28], eax
jge 0x10018b68
mov dword [ebp - 0x2c], 0
jmp 0x10018b56
cmp dword [ebp - 0x2c], 0x1c
jae 0x10018b63
mov eax, dword [ebp - 0x10]
jmp 0x10018b68
jmp 0x10018ad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret