Function at 0x10012110
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100396df
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x1004b6e0]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
push edi
mov eax, dword [0x1004b6e0]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
push 0
push 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.1001b050
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x1e8], 2
sub esp, 0x10
lea ecx, [esp + 0xe4]
call fcn.100171e0
mov byte [esp + 0x1e8], 3
sub esp, 0x10
lea ecx, [esp + 0x3c]
call fcn.10017cb0
mov byte [esp + 0x1e8], 4
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + 4]
test byte [esp + eax + 0xe0], 6
je 0x100123cd
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x38], 6
je 0x10012229
mov byte [esp + 0x1e8], 3
lea ecx, [esp + 0x2c]
call fcn.100128a0
mov byte [esp + 0x1e8], 2
lea ecx, [esp + 0xd4]
call fcn.100109d0
mov dword [esp + 0x1e8], 5
lea ecx, [esp + 0x14]
call fcn.1001ad50
mov dword [esp + 0x1e8], 0xffffffff
push dword [esp + 0x14]
call fcn.1001f7c4
add esp, 4
or eax, 0xffffffff
jmp 0x10012870
lea eax, [esp + 0x1a8]
mov ecx, ebx
push eax
call fcn.10016aa0
mov byte [esp + 0x1e8], 7
push eax
push dword [edi + 4]
push edi
call fcn.1001d850
mov dword [edi + 4], eax
mov dword [esp + 0x18], 1
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [esp + 0x1e8], 4
cmp dword [esp + 0x1bc], 8
jb 0x1001227b
push dword [esp + 0x1a8]
call fcn.1001f7c4
add esp, 4
mov esi, dword [edi]
xor eax, eax
mov dword [esp + 0x1bc], 7
mov dword [esp + 0x1b8], 0
mov word [esp + 0x1a8], ax
cmp esi, edi
je 0x10012319
lea edx, [esi + 8]
lea ecx, [esp + 0x2c]
call fcn.1001c170
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
add ecx, ebx
call fcn.1000d910
mov byte [esp + 0x1e8], 8
push eax
call fcn.1001b2f0
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x1e8], 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100122f6
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x100122f6
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [esp + 0x28]
push 0xa
mov eax, dword [ecx]
call dword [eax + 0x30]
movzx eax, ax
mov ecx, ebx
push eax
call fcn.1001ca90
mov ecx, ebx
call fcn.1001ab80
mov esi, dword [esi]
cmp esi, edi
jne 0x100122a1
lea ecx, [esp + 0x30]
call fcn.10019dc0
test eax, eax
jne 0x10012354
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10012342
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x10012354
push 0
call fcn.1000d870
lea ecx, [esp + 0xe4]
call fcn.10019820
test eax, eax
jne 0x10012398
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0xd4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10012386
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x10012398
push 0
call fcn.1000d870
cmp dword [0x1004c5f0], 0x10
mov ecx, 0x1004c5dc
mov eax, 0x1004c5f4
cmovae ecx, dword [0x1004c5dc]
cmp dword [0x1004c608], 0x10
push ecx
cmovae eax, dword [0x1004c5f4]
push eax
call fcn.1001ff4c
add esp, 8
jmp 0x10012820
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1bc], 0xf
mov dword [esp + 0x1b8], 0
mov byte [esp + 0x1a8], 0
mov byte [esp + 0x1e8], 9
xor eax, eax
mov dword [esp + 0x1a0], 0
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a4], 7
mov dword [esp + 0x1a0], 0
mov word [esp + 0x190], ax
mov byte [esp + 0x1e8], 0xa
jmp 0x10012450
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0xd4]
mov eax, dword [eax + 4]
add ecx, eax
lea eax, [esp + 0x28]
push eax
call fcn.1000d910
mov byte [esp + 0x1e8], 0xb
push eax
call fcn.1001b1c0
add esp, 4
mov esi, eax
mov byte [esp + 0x1e8], 0xa
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x100124a1
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x100124a1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esi]
mov ecx, esi
push 0xa
mov eax, dword [eax + 0x20]
call eax
mov byte [esp + 0x20], al
lea edx, [esp + 0x1a8]
push dword [esp + 0x20]
lea ecx, [esp + 0xd8]
call fcn.1001d6a0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100125df
mov ecx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x1a0]
cmp ecx, eax
ja 0x10012512
cmp dword [esp + 0x1a4], 8
lea eax, [esp + 0x190]
mov dword [esp + 0x1a0], ecx
cmovae eax, dword [esp + 0x190]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x10012523
sub ecx, eax
push 0
push ecx
lea ecx, [esp + 0x198]
call fcn.10018fa0
cmp dword [esp + 0x1a4], 8
lea edx, [esp + 0x190]
mov eax, dword [esp + 0x1a0]
lea ecx, [esp + 0x1a8]
cmovae edx, dword [esp + 0x190]
cmp dword [esp + 0x1bc], 0x10
cmovae ecx, dword [esp + 0x1a8]
inc eax
push eax
push edx
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x190]
lea ecx, [esp + 0x2c]
call fcn.1001c170
mov esi, eax
lea eax, [esp + 0x24]
push eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.1000d910
mov byte [esp + 0x1e8], 0xc
push eax
call fcn.1001b2f0
add esp, 4
mov ebx, eax
mov byte [esp + 0x1e8], 0xa
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x100125bf
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x100125bf
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebx]
mov ecx, ebx
push 0xa
call dword [eax + 0x30]
movzx eax, ax
mov ecx, esi
push eax
call fcn.1001ca90
mov ecx, esi
call fcn.1001ab80
jmp 0x10012450
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c0]
push eax
call fcn.10016aa0
mov byte [esp + 0x1e8], 0xd
push eax
push dword [edi + 4]
push edi
call fcn.1001d850
mov dword [edi + 4], eax
mov dword [esp + 0x18], 1
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [esp + 0x1e8], 0xa
cmp dword [esp + 0x1d4], 8
jb 0x10012633
push dword [esp + 0x1c0]
call fcn.1001f7c4
add esp, 4
mov esi, dword [edi]
xor eax, eax
mov dword [esp + 0x1d4], 7
mov dword [esp + 0x1d0], 0
mov word [esp + 0x1c0], ax
cmp esi, edi
je 0x100126d8
lea ecx, [ecx]
lea edx, [esi + 8]
lea ecx, [esp + 0x2c]
call fcn.1001c170
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
add ecx, ebx
call fcn.1000d910
mov byte [esp + 0x1e8], 0xe
push eax
call fcn.1001b2f0
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x1e8], 0xa
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x100126b5
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x100126b5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [esp + 0x24]
push 0xa
mov eax, dword [ecx]
call dword [eax + 0x30]
movzx eax, ax
mov ecx, ebx
push eax
call fcn.1001ca90
mov ecx, ebx
call fcn.1001ab80
mov esi, dword [esi]
cmp esi, edi
jne 0x10012660
lea ecx, [esp + 0xe4]
call fcn.10019820
test eax, eax
jne 0x1001271c
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0xd4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x1001270a
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x1001271c
push 0
call fcn.1000d870
lea ecx, [esp + 0x30]
call fcn.10019dc0
test eax, eax
jne 0x10012757
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x10012745
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x10012757
push 0
call fcn.1000d870
cmp dword [0x1004c5f0], 0x10
mov esi, 0x1004c5dc
mov eax, esi
cmovae eax, dword [0x1004c5dc]
push eax
call fcn.10020ba4
add esp, 4
mov eax, 0x1004c5f4
cmp dword [0x1004c5f0], 0x10
cmovae esi, dword [0x1004c5dc]
cmp dword [0x1004c608], 0x10
push esi
cmovae eax, dword [0x1004c5f4]
push eax
call fcn.1001ff4c
add esp, 8
mov byte [esp + 0x1e8], 9
cmp dword [esp + 0x1a4], 8
jb 0x100127c1
push dword [esp + 0x190]
call fcn.1001f7c4
add esp, 4
xor eax, eax
mov dword [esp + 0x1a4], 7
mov dword [esp + 0x1a0], 0
mov word [esp + 0x190], ax
mov byte [esp + 0x1e8], 4
cmp dword [esp + 0x1bc], 0x10
jb 0x10012802
push dword [esp + 0x1a8]
call fcn.1001f7c4
add esp, 4
mov dword [esp + 0x1bc], 0xf
mov dword [esp + 0x1b8], 0
mov byte [esp + 0x1a8], 0
mov byte [esp + 0x1e8], 3
lea ecx, [esp + 0x2c]
call fcn.100128a0
mov byte [esp + 0x1e8], 2
lea ecx, [esp + 0xd4]
call fcn.100109d0
mov dword [esp + 0x1e8], 0xf
lea ecx, [esp + 0x14]
call fcn.1001ad50
mov dword [esp + 0x1e8], 0xffffffff
push dword [esp + 0x14]
call fcn.1001f7c4
add esp, 4
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.1001ef7b
mov esp, ebp
pop ebp
ret