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

Disassembly:
push 0xffffffffffffffff
push 0x44c182
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov eax, dword [esp + 0x298]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2a0]
push ebx
mov edi, 0xf
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
call fcn.00402280
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x290], ebx
call fcn.0040c6f0
push 0x103
lea edx, [esp + 0x179]
push ebx
mov byte [esp + 0x294], 1
push edx
mov byte [esp + 0x180], bl
call fcn.00436440
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x180]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
mov cl, byte [esi + eax]
cmp cl, bl
je 0x40edf6
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x40ede3
jmp 0x40edfa
cmp edx, ebx
jne 0x40edfd
sub eax, 1
mov byte [eax], bl
sub esp, 0x1c
mov esi, esp
lea eax, [esp + 0x190]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov dword [esp + 0x30], esp
mov byte [esi + 4], bl
lea edx, [eax + 1]
jmp 0x40ee20
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40ee20
sub eax, edx
push eax
lea edx, [esp + 0x194]
push edx
mov ecx, esi
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x2c4], 2
mov ecx, esp
mov dword [esp + 0x50], esp
push 8
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x4534a0
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x2c4], 1
call fcn.004041e0
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40ef1d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 4
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.fail
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x2c4], 3
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x11
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.PathIsDirectory__
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x2c4], 1
call fcn.004041e0
mov byte [esp + 0x28c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eefc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0xe4], 0x10
jb 0x40ef16
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00416c01
add esp, 4
xor eax, eax
jmp 0x40f685
lea eax, [esp + 0x174]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40ef40
sub eax, esi
push eax
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0xb8]
call fcn.004024f0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x2a8], 4
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xd4]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402280
call fcn.0040c980
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.00402280
push 0xb
push str.zdqhlp.dll
lea eax, [esp + 0x9c]
mov byte [esp + 0x294], 5
call fcn.00411890
lea ecx, [esp + 0x94]
call fcn.0040cc10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb8]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov byte [esp + 0x2c4], 6
mov ecx, esp
mov dword [esp + 0x4c], esp
push 8
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x4534b8
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x2c4], 5
call fcn.004041e0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], vtable.CParseConfig.0
mov byte [esp + 0x28c], 8
mov ecx, dword [esp + 0xd0]
mov esi, 0x10
cmp dword [esp + 0xe4], esi
jae 0x40f06f
lea ecx, [esp + 0xd0]
lea eax, [esp + 0x28]
push eax
call fcn.00401a10
test al, al
je 0x40f573
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov ebp, dword [esp + 0x294]
push ebp
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x178]
mov byte [esp + 0x290], 9
call fcn.0040e9a0
lea esi, [esp + 0x48]
call fcn.0040d120
test eax, eax
jne 0x40f1af
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x4529fc
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x2c4], 0xa
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x4534c4
call fcn.004020b0
mov byte [esp + 0x2c4], 9
call fcn.004041e0
call fcn.00410d30
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40f10f
push eax
call fcn.00416c01
add esp, 4
mov esi, 0x10
cmp dword [esp + 0xac], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jb 0x40f139
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xc8], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x40f167
mov edx, dword [esp + 0xb4]
push edx
call fcn.00416c01
add esp, 4
mov byte [esp + 0x28c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0xe4], esi
jmp 0x40ef04
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
lea edx, [esp + 0x174]
push edx
lea ecx, [esp + 0x108]
mov byte [esp + 0x290], 0xb
call fcn.004020b0
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x2c]
mov byte [esp + 0x290], 0xc
call fcn.0040d5f0
cmp dword [esp + 0x11c], 0x10
mov esi, eax
mov dword [esp + 0x14], esi
jb 0x40f21f
mov ecx, dword [esp + 0x108]
push ecx
call fcn.00416c01
add esp, 4
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
mov byte [esp + 0x28c], 0xd
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push edx
lea ecx, [esp + 0x148]
mov dword [esp + 0x160], edi
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
call fcn.00402280
cmp esi, ebx
mov byte [esp + 0x28c], 0xe
je 0x40f2c5
cmp bp, bx
jne 0x40f2c5
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x108]
call fcn.004020b0
lea ecx, [esp + 0x13c]
push ecx
lea ecx, [esp + 0x124]
lea edx, [esp + 0x108]
mov byte [esp + 0x290], 0xf
call fcn.0040e5c0
lea ecx, [esp + 0x104]
mov dword [esp + 0x14], eax
mov byte [esp + 0x28c], 0xe
call fcn.00402120
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0xf4]
mov dword [esp + 0x10c], edi
mov dword [esp + 0x108], ebx
mov byte [esp + 0xf8], bl
call fcn.00402280
lea ebx, [esp + 0x68]
lea edi, [esp + 0xe8]
mov byte [esp + 0x28c], 0x10
call fcn.004109e0
mov esi, dword [eax]
mov ebp, dword [eax + 4]
lea ebx, [esp + 0x60]
call fcn.00410a30
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea ebx, [esp + 0x70]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
call fcn.004109e0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
push ebp
xor ebx, ebx
push esi
mov byte [esp + 0x28], bl
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0x6c]
push ecx
call fcn.00412f70
mov esi, dword [esp + 0x2ac]
add esp, 0x18
cmp si, bx
jne 0x40f383
push 0xc
push str.zdguard1.sys
mov edx, edi
push edx
call fcn.00402360
cmp eax, 0xffffffff
je 0x40f383
call fcn.0040d3a0
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], ebx
je 0x40f3da
lea eax, [esp + 0x48]
push eax
call fcn.0040ce60
test eax, eax
jne 0x40f48a
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x4529fc
call fcn.004020b0
sub esp, 0x1c
mov byte [esp + 0x2c4], 0x11
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x4534e4
call fcn.004020b0
mov byte [esp + 0x2c4], 0x10
call fcn.004041e0
mov dword [esp + 0x14], ebx
cmp si, bx
jne 0x40f49b
cmp dword [esp + 0x134], ebx
je 0x40f49b
mov esi, 0xf
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0x15c]
mov byte [esp + 0x290], 0x12
call fcn.004020f0
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x290], 0x13
call fcn.004020b0
lea ecx, [esp + 0x158]
push ecx
lea ecx, [esp + 0x108]
lea edx, [esp + 0x7c]
mov byte [esp + 0x290], 0x14
call fcn.0040e5c0
lea ecx, [esp + 0x78]
call fcn.00402120
lea ecx, [esp + 0x158]
call fcn.00402120
lea ecx, [esp + 0x104]
mov byte [esp + 0x28c], 0x10
call fcn.00402120
jmp 0x40f4a0
lea ecx, [esp + 0x38]
push ecx
call fcn.00403db0
mov esi, 0xf
jmp 0x40f4b4
mov esi, 0xf
lea edx, [esp + 0x38]
push edx
call fcn.00403840
lea eax, [esp + 0x48]
push eax
call fcn.0040ce60
mov edi, 0x10
cmp dword [esp + 0x100], edi
jb 0x40f4d2
mov ecx, dword [esp + 0xec]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x154], edi
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
jb 0x40f500
mov edx, dword [esp + 0x140]
push edx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x138], edi
mov dword [esp + 0x154], esi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
jb 0x40f52e
mov eax, dword [esp + 0x124]
push eax
call fcn.00416c01
add esp, 4
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x138], esi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
je 0x40f554
push eax
call fcn.00416c01
add esp, 4
lea esi, [esp + 0x48]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00410d30
xor ebx, ebx
lea edi, [ebx + 0xf]
lea esi, [ebx + 0x10]
jmp 0x40f5c8
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x12
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x452ae4
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x2c4], 0x15
mov ecx, esp
mov dword [esp + 0x4c], esp
push 8
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push 0x452af8
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0x2c4], 8
call fcn.004041e0
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40f5d9
push eax
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xac], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jb 0x40f5fe
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0xc8], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x40f62c
mov edx, dword [esp + 0xb4]
push edx
call fcn.00416c01
add esp, 4
mov byte [esp + 0x28c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f668
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0xe4], esi
jb 0x40f681
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00416c01
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.004322f2
add esp, 0x27c
ret 0xc