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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x1c], ecx
xor edi, edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
call fcn.100035c0
push 0x5c
lea ecx, [esp + 0x14]
call fcn.10010000
test al, al
jne 0x10012721
push 0x1002c0d8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.100035c0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.10005a10
mov ecx, dword [eax]
add esp, 0xc
push ecx
lea ecx, [esp + 0x14]
call fcn.100035c0
mov edx, dword [esp + 0x14]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x1c]
push eax
call fcn.10002e75
add esp, 8
mov ebx, dword [esp + 0x10]
push 0x10029edc
push ebx
call fcn.1000d490
add esp, 8
test eax, eax
jne 0x100129db
push 0x10020ba8
push ebx
call fcn.1000d490
add esp, 8
test eax, eax
je 0x10012810
mov edx, dword [0x1002097c]
mov ecx, dword [0x10020978]
mov eax, dword [0x10020980]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov cx, word [0x10020984]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], cx
call esi
push ebx
mov dword [esp + 0x18], eax
call esi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jl 0x10012810
cmp word [ebx + 0xa], 0x3a
jne 0x10012810
mov esi, dword [esp + 0x1c]
mov ax, word [ebx + 8]
lea ecx, [esi + 0x1c]
push ecx
lea ecx, [esp + 0x28]
mov word [esp + 0x3c], ax
call fcn.1000fcf0
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
call edx
xor ecx, ecx
cmp dword [eax], edi
setne cl
mov esi, ecx
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x100127e7
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], edi
cmp esi, edi
je 0x10012807
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.100035c0
lea ecx, [esp + 0x24]
call fcn.1000fd10
jmp 0x100129e9
lea ecx, [esp + 0x24]
call fcn.1000fd10
push 0x10020ba8
push ebx
call fcn.1000d490
add esp, 8
test eax, eax
je 0x100129db
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov esi, edi
je 0x1001284f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
add esp, 4
mov esi, eax
push ebx
push esi
mov word [esi], di
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [esi + eax*2]
cmp ebx, esi
jb 0x10012903
lea esp, [esp]
movzx eax, word [ebx]
cmp ax, 0x5c
je 0x1001287e
cmp ax, di
jne 0x100128f8
xor ecx, ecx
cmp ax, di
setne cl
mov eax, ecx
cmp eax, edi
mov dword [esp + 0xc], eax
je 0x10012893
mov word [ebx], di
push esi
lea edx, [esp + 0x74]
push edx
call dword [0x1005c4c8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x3c]
push 1
push edi
lea eax, [esp + 0x78]
mov dword [esp + 0x60], 0x18
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], 0x40
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov eax, dword [edx + 0x7c]
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x64]
push edx
push 0x100000
lea ecx, [esp + 0x40]
push ecx
call eax
test eax, eax
je 0x10012923
cmp dword [esp + 0xc], edi
je 0x100128f8
mov word [ebx], 0x5c
sub ebx, 2
cmp ebx, esi
jae 0x10012870
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.100035c0
push esi
call fcn.10002e75
add esp, 4
jmp 0x100129e9
push edi
call fcn.10002e75
push 2
call fcn.10002e89
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov word [eax], di
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.10011a40
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x3c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + 0x194]
push eax
call ecx
cmp dword [esp + 0xc], edi
je 0x1001296c
mov word [ebx], 0x5c
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.100035c0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10005a10
mov edx, dword [eax]
add esp, 0xc
push edx
lea ecx, [esp + 0x1c]
call fcn.100035c0
mov eax, dword [esp + 0x14]
push eax
call fcn.10002e75
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x1c], edi
call fcn.10002e75
mov ebx, dword [esp + 0x20]
add esp, 8
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.100035c0
push ebx
call fcn.10002e75
push esi
call fcn.10002e75
add esp, 8
jmp 0x100129e9
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.100035c0
mov esi, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x14]
call fcn.100035c0
push esi
call fcn.10002e75
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 4
push 1
call ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x28], edi
call dword [0x1005c4c8]
lea eax, [esp + 0x78]
lea edx, [esp + 0x80]
push 8
push eax
mov dword [esp + 0x48], 0x18
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.1000cdf0
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + 0x7c]
add esp, 8
push 0x21
push 3
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x4c]
push ecx
push 0x100001
lea edx, [esp + 0x34]
push edx
call eax
test eax, eax
jne 0x10012a97
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x194]
push ecx
call edx
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10002e75
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4