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

Disassembly:
sub esp, 0x3a4
mov eax, dword [0x49c23c]
xor eax, esp
mov dword [esp + 0x3a0], eax
mov eax, dword [esp + 0x3b0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c0]
push edi
xor ebx, ebx
push 0x103
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xa9]
push ebx
push ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0xb0], bl
call fcn.00440500
push 0x103
lea edx, [esp + 0x2bd]
push ebx
push edx
mov byte [esp + 0x2c4], bl
call fcn.00440500
mov edi, dword [esp + 0x3d4]
mov ebp, dword [esp + 0x3d0]
add esp, 0x18
cmp esi, ebx
je 0x409f57
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x618]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push ebx
push 0x104
lea edx, [esp + 0xb0]
push edx
push edi
push ebp
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x409ecf
xor eax, eax
jmp 0x40a233
cmp byte [esp + 0xa4], 0x3c
jne 0x409f0a
lea eax, [esp + 0xa4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409ee3
sub eax, edx
mov byte [esp + eax + 0xa3], bl
lea eax, [esp + 0xa5]
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax - 1], cl
inc eax
cmp cl, bl
jne 0x409f00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, eax
or edx, ecx
jne 0x409f32
lea eax, [esp + 0xa4]
push eax
push 0x4626b8
push 0x50
push esi
call fcn.00409840
add esp, 0x10
jmp 0x409f4c
push ecx
push eax
lea ecx, [esp + 0xac]
push ecx
push str._s0x_lx
push 0x50
push esi
call fcn.00409840
add esp, 0x18
push 0x50
push esi
call fcn.004417a9
add esp, 8
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40a22e
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x618]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push ebp
push eax
mov eax, dword [ecx + 0x3c]
call eax
test eax, eax
jl 0x409ec8
push ebx
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x618]
push ebx
mov ecx, dword [eax]
push ebx
push ebx
push 0x28
add esi, 0x104
push esi
push ebx
push 0x104
lea edx, [esp + 0x2cc]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
jl 0x409ec8
lea ecx, [esp + 0x2ac]
push 0x104
push ecx
call fcn.004417a9
push 0x4626a8
push esi
call fcn.004565bf
add esp, 0x10
test eax, eax
je 0x40a0d0
push str.win32k
push esi
call fcn.004565bf
add esp, 8
test eax, eax
je 0x40a0d0
lea edx, [esp + 0x2ac]
push 0x5c
push edx
call fcn.00440f50
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40a02d
lea esi, [esp + 0x2ac]
jmp 0x40a02e
inc esi
push 0x104
lea eax, [esp + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
je 0x40a160
lea ecx, [esp + 0x1a8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
test eax, eax
je 0x40a160
lea eax, [esp + 0x1a8]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40a067
mov edx, dword [str._system32drivers_]
mov ecx, dword [0x462690]
mov dword [eax], edx
mov edx, dword [0x462694]
mov dword [eax + 4], ecx
mov ecx, dword [0x462698]
mov dword [eax + 8], edx
mov dx, word [0x46269c]
mov dword [eax + 0xc], ecx
mov cl, byte [0x46269e]
mov word [eax + 0x10], dx
mov byte [eax + 0x12], cl
mov eax, esi
mov ecx, esi
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40a0b0
lea edi, [esp + 0x1a8]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40a0c3
jmp 0x40a152
push 0x104
lea edx, [esp + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
test eax, eax
je 0x40a160
lea eax, [esp + 0x1a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
test eax, eax
je 0x40a160
lea eax, [esp + 0x1a8]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40a101
mov ecx, dword [str._system32_]
mov edx, dword [0x462684]
mov dword [eax], ecx
mov cx, word [0x462688]
mov dword [eax + 4], edx
mov dl, byte [0x46268a]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x2ac]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a137
lea edi, [esp + 0x1a8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40a148
mov esi, edx
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x1a8]
mov edx, 0x104
mov eax, edi
sub esi, edi
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40a18f
mov cl, byte [esi + eax]
cmp cl, bl
je 0x40a18f
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x40a174
jmp 0x40a193
cmp edx, ebx
jne 0x40a194
dec eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
mov byte [eax], bl
mov eax, dword [ebp + 0x618]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push ebx
push 1
push eax
call edx
test eax, eax
jl 0x40a1ed
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [edi + 0x144], eax
mov eax, dword [esp + 0x30]
mov dword [edi + 0x140], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x138], edx
mov dword [edi + 0x13c], ebx
mov dword [edi + 0x130], eax
mov dword [edi + 0x134], ecx
mov eax, dword [ebp + 0x618]
mov edx, dword [eax]
mov edx, dword [edx + 0xd0]
lea ecx, [esp + 0x2c]
push ecx
push 0x34
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x46267c
push ebx
push ebx
push ecx
push eax
call edx
test eax, eax
jl 0x40a22e
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 0x148], eax
mov dword [edi + 0x14c], ecx
mov eax, 1
mov ecx, dword [esp + 0x3b0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004404e6
add esp, 0x3a4
ret 0x10