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

Disassembly:
push ebp
mov eax, 0x1040
lea ebp, [esp - 0xfc0]
call fcn.01081f90
mov eax, dword [0x10cf230]
and dword [ebp - 0x60], 0
push ebx
mov ebx, dword [ebp + 0xfc8]
push esi
mov esi, dword [ebp + 0xfdc]
mov dword [ebp + 0xfbc], eax
mov eax, dword [ebp + 0xfd0]
push edi
mov edi, dword [ebp + 0xfcc]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 0xb8]
test eax, eax
mov dword [ebp - 0x4c], esi
mov dword [ebx + 0x444], eax
je 0x10686f1
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [edi + 4]
push 0x1000
push eax
call fcn.0105f246
mov ecx, dword [edi + 0x28]
shr eax, 0xc
mov edx, eax
mov dword [ebp - 0x50], eax
imul edx, edx, 0x1010
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x5c], ecx
imul ecx, ecx, 0x1c
add eax, 0x400
mov dword [ebp - 0x64], eax
push esi
lea eax, [eax + eax*2 + 0x4a4]
lea eax, [ecx + eax*2]
lea esi, [ebp - 0x68]
push esi
add eax, edx
push eax
push dword [ebp + 0xfd4]
mov dword [ebp - 0x54], edx
push ebx
mov dword [ebp - 0x6c], ecx
call fcn.0105fb17
add esp, 0x1c
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1068b2b
cmp dword [ebp - 0x68], 0
mov esi, dword [ebx + 0x448]
jne 0x106881b
lea eax, [esi + 0x1c]
push 0x100e058
push eax
call fcn.0105ed68
test eax, eax
pop ecx
pop ecx
jne 0x1068791
push 0x6f9e
push 0x800c0063
push dword [ebp - 0x4c]
call fcn.0105f0c1
add esp, 0xc
jmp 0x1068b28
test byte [esi + 0x8c], 1
je 0x10687a7
push 0x61b9
push dword [ebp - 0x4c]
jmp 0x1068a19
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 0x54]
jne 0x10687e9
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x60]
jne 0x10687e9
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x5c]
jne 0x10687e9
mov eax, dword [esi + 0x68]
xor edx, edx
mov ecx, 0x3e8
div ecx
cmp dword [edi + 0x1c], eax
jne 0x10687e9
movzx eax, word [esi + 0x120]
cmp dword [edi + 0x28], eax
jne 0x10687e9
mov eax, dword [esi + 0x58]
sub eax, 0x400
cmp dword [edi + 0x2c], eax
je 0x10687f7
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push 0x620e
push eax
call dword [ecx + 0x18]
movzx ecx, word [esi + 0x120]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x58]
mov dword [ebp - 0x5c], ecx
imul ecx, ecx, 0x1c
mov dword [ebp - 0x50], edx
imul edx, edx, 0x1010
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x54], edx
jmp 0x1068821
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x6c]
inc dword [esi + 0x40]
lea eax, [esi + 0x108]
mov dword [ebx + 0x44c], eax
lea eax, [esi + 0x11c]
mov dword [ebx + 0x450], eax
lea eax, [esi + 0x92c]
mov dword [ebx + 0x454], eax
lea eax, [esi + 0x93c]
mov dword [ebx + 0x458], eax
lea eax, [esi + 0x948]
mov dword [ebx + 0x45c], eax
add eax, edx
mov dword [ebx + 0x460], eax
add eax, ecx
mov dword [ebx + 0x464], eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x10688a0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jbe 0x106888f
push 0x6204
jmp 0x106879f
push dword [edi + 0x24]
lea eax, [ebx + 0x232]
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push dword [ebp - 0x4c]
push edi
call fcn.0106001a
cmp dword [ebp - 0x68], 0
pop ecx
pop ecx
je 0x1068b2b
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x1c]
imul eax, eax, 0x3e8
push 0xc
push 0
push esi
mov dword [esi + 0x68], eax
call sub.msvcrt.dll_memset
push dword [ebp - 0x4c]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov ecx, dword [ebx + 0x44c]
mov dword [ecx + 0xc], 0xfffff
mov ecx, dword [ebx + 0x44c]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x58]
push eax
push dword [ebx + 0xc]
call fcn.0105fd96
add esp, 0x18
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1068b2b
mov eax, dword [ebp - 0x58]
shr eax, 0xc
cmp eax, dword [esi + 0x58]
jbe 0x1068935
push 0x6210
jmp 0x106879f
test byte [edi + 0xc], 0x20
je 0x1068948
mov eax, dword [ebx + 0x448]
mov dword [eax + 0x3c], 1
cmp dword [ebp - 0x58], 0
je 0x106895d
cmp dword [ebp + 0xfd8], 1
je 0x106895d
test byte [edi + 0xd], 1
je 0x1068978
mov esi, dword [ebp - 0x4c]
push esi
push ebx
push edi
call fcn.0106845c
add esp, 0xc
test eax, eax
mov dword [ebp - 0x48], eax
jl 0x1068b2b
jmp 0x106897b
mov esi, dword [ebp - 0x4c]
and word [ebp + 0x6c], 0
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push ebx
call fcn.01068348
add esp, 0x14
test eax, eax
mov dword [ebp - 0x48], eax
jge 0x10689ac
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 0x61b9
jne 0x1068b2b
test byte [ebp + 0x6c], 1
je 0x10689bf
test byte [edi + 0xd], 0x10
jne 0x10689bf
push 0x61b9
jmp 0x1068a18
push 0x10
lea eax, [ebp - 0x3c]
push 0x100e068
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10689dd
push 0x61b3
jmp 0x1068a18
cmp dword [ebp - 0x48], 0
jge 0x1068a04
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 0x61b9
jne 0x1068a04
lea eax, [ebp - 0x80]
push eax
add ebx, 0x28
push ebx
call fcn.0105fe8e
pop ecx
pop ecx
jmp 0x1068b2b
push 1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
jne 0x1068a25
push 0x61c9
push esi
call fcn.0105f0eb
pop ecx
pop ecx
jmp 0x1068b28
push 0x78
lea eax, [ebp + 0x1b8]
push eax
mov eax, dword [ebx + 0x448]
add eax, 0x90
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0x448]
inc dword [eax + 0x90]
mov eax, dword [ebx + 0x448]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x84], ecx
push dword [ebp - 0x2c]
call fcn.0105f19a
mov ecx, dword [ebx + 0x448]
mov dword [ecx + 0x88], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x448]
mov dword [eax + 0x74], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x78], ecx
mov eax, dword [ebx + 0x448]
mov cx, word [ebp + 0x6c]
mov word [eax + 0x8c], cx
mov eax, dword [ebx + 0x448]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x44], ecx
mov eax, dword [ebx + 0x44c]
mov ecx, dword [ebp - 0x54]
add esp, 0x10
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x450]
mov cx, word [ebp - 0x5c]
push 0x3f
mov word [eax + 4], cx
pop edx
mov edi, 0x7e0
mov eax, dword [ebx + 0x450]
movzx esi, word [ebp - 0x60]
lea ecx, [edx + 1]
movzx ecx, cx
lea eax, [edi + eax + 0x10]
dec edx
sub edi, 0x20
mov dword [eax], ecx
mov dword [eax + 0x10], esi
mov dword [ebp - 0x60], ecx
jns 0x1068ac2
mov eax, dword [ebx + 0x450]
mov dword [eax + 8], 1
mov edi, dword [ebx + 0x448]
add edi, 0xc
mov esi, 0x100e068
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0x448]
mov eax, dword [ebp - 0x70]
add edi, 0x1c
mov esi, 0x100e058
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x448]
mov ecx, dword [eax]
add edx, 0x2c
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 0xfbc]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
call fcn.01041c5f
add ebp, 0xfc0
leave
ret