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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi]
mov eax, dword [ebx + 0x14]
push edi
mov edi, dword [ebx + 0x48]
push 0
mov dword [ebp - 4], eax
call fcn.1003fb51
mov eax, dword [ebp - 4]
push 0
mov ecx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
call fcn.1003b361
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx]
call dword [eax + 0x54]
test al, 1
je 0x1004015f
mov edx, dword [ebx + 0x70]
mov dword [ebp - 0x18], edx
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0x68]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x6c]
jmp 0x10040174
mov edx, dword [ebx + 0x74]
mov dword [ebp - 0x18], edx
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x68]
cmp ecx, eax
mov dword [ebp - 0xc], ecx
jne 0x10040185
cmp dword [ebp - 0x10], edx
jne 0x10040185
xor eax, eax
inc eax
jmp 0x10040187
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push 1
push dword [0x10076604]
call sub.msls31.dll_Ordinal_48
push dword [ebp - 4]
mov ecx, ebx
call fcn.1003b088
test eax, eax
je 0x100401b5
test byte [eax + 0x4d], 2
je 0x100401b5
push eax
mov ecx, ebx
call fcn.1003be10
mov eax, dword [ebx + 0x78]
mov dword [ebp - 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
test eax, eax
jne 0x100401fa
push dword [edi + 0x24]
mov ecx, ebx
call fcn.100394a9
mov edi, eax
mov ecx, ebx
mov dword [ebp - 8], edi
call fcn.1004baab
mov ecx, eax
call fcn.1000bfa6
test eax, eax
je 0x100401fa
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, edi
jle 0x100401fa
mov eax, edi
shl eax, 2
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], eax
jg 0x10040204
mov dword [ebp - 8], eax
lea ecx, [esi + 4]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push 3
push eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [0x10076604]
call sub.msls31.dll_Ordinal_3
mov edi, eax
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x6c], eax
jg 0x10040239
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x64], eax
jg 0x10040244
mov dword [ebp - 0x64], eax
push 0
mov ecx, ebx
call fcn.1003b361
push dword [ebp - 0x44]
mov ecx, esi
call fcn.1003f8d7
test edi, edi
mov dword [ebp - 0x44], eax
je 0x10040270
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x58]
call fcn.10007dc0
xor eax, eax
jmp 0x100403da
test byte [ebx + 0x9b], 1
jne 0x1004036c
sub eax, dword [ebp - 4]
mov ecx, esi
mov dword [ebx + 0x34], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.1003e157
mov ax, word [ebp - 4]
mov word [ebx + 0x3c], ax
mov ax, word [ebp - 8]
mov ecx, ebx
mov word [ebx + 0x3e], ax
call fcn.1004be10
test eax, eax
je 0x100402c7
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
add eax, ecx
mov word [ebx + 0x3a], ax
mov ax, word [ebp - 0x64]
mov word [ebx + 0x38], ax
jmp 0x100402ce
mov ecx, ebx
call fcn.1003b5ae
and byte [ebx + 0x42], 0x9f
push dword [ebp - 0x44]
mov ecx, ebx
call fcn.1004b9e6
lea esi, [ebx + 8]
mov ecx, esi
call fcn.1005e1a2
test eax, eax
je 0x1004032d
push 0
mov ecx, esi
call fcn.1005df84
mov ecx, esi
call fcn.1005d785
movzx eax, ax
cmp eax, 0xd
je 0x10040315
mov ecx, dword [ebx + 0x18]
test byte [ecx + 0x6e], 8
je 0x10040310
cmp eax, 0xa
je 0x10040315
cmp eax, 7
jne 0x10040319
or byte [ebx + 0x43], 0x80
push 0
mov ecx, esi
call fcn.1005de9e
shl al, 5
xor al, byte [ebx + 0x42]
and al, 0x60
xor byte [ebx + 0x42], al
mov ecx, esi
call fcn.1005ca0a
cmp dword [ebp - 0x44], eax
jle 0x10040356
mov ecx, ebx
call fcn.1004be10
test eax, eax
je 0x10040351
mov ecx, ebx
call fcn.1004ba8b
test byte [eax + 1], 1
je 0x10040356
dec dword [ebx + 0x34]
jmp 0x1004035d
mov ecx, ebx
call fcn.1003b615
lea eax, [ebx + 0x38]
push eax
lea eax, [ebx + 0x3a]
push eax
mov ecx, ebx
call fcn.1003c09d
cmp dword [ebp + 8], 0
je 0x100403d7
lea esi, [ebx + 0x34]
push 5
pop ecx
lea edi, [ebp - 0x84]
mov dword [ebp - 4], esi
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x50]
jg 0x1004038e
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x48]
jg 0x10040399
mov eax, dword [ebp - 0x48]
add eax, ecx
mov word [ebx + 0x3a], ax
mov ax, word [ebp - 0x60]
push 1
mov ecx, ebx
mov word [ebx + 0x38], ax
call fcn.1003b361
mov ecx, ebx
call fcn.1003b615
push 0
mov ecx, ebx
call fcn.1003b361
movzx eax, word [ebx + 0x3a]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov dword [ecx], eax
push 5
pop ecx
lea esi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4