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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c6abb
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x3c], ebx
push str.Wow64DisableWow64FsRedirection
xor esi, esi
push 0x687ef0
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x497dd2
lea ecx, [esp + 0x4c]
push ecx
call eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x78], esi
mov eax, dword [ebx + 0xf0]
mov eax, dword [eax]
mov edi, dword [ebx + 0xdc]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
lea esp, [esp]
mov esi, dword [ebx + 0xf0]
mov eax, dword [ebx + 0xdc]
test edi, edi
je 0x497e04
cmp edi, eax
je 0x497e09
call fcn.0058204a
cmp dword [esp + 0x48], esi
je 0x498634
cmp dword [ebp + 0x10], 0
je 0x497e2d
mov edx, dword [ebp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x498498
cmp dword [ebp + 0x14], 0
je 0x497e3f
mov eax, dword [ebp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
jne 0x497e91
call fcn.0058204a
xor eax, eax
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax + 0x14]
jne 0x497e58
call fcn.0058204a
mov esi, dword [esp + 0x48]
mov edx, dword [esi + 8]
add esi, 8
cmp dword [edx - 0xc], 0
je 0x498465
push 4
call fcn.005812e3
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x78], 2
xor ebx, ebx
cmp eax, ebx
je 0x497e95
lea ecx, [esp + 0x54]
mov dword [eax], ecx
jmp 0x497e97
mov eax, dword [edi]
jmp 0x497e4a
xor eax, eax
mov byte [esp + 0x78], 0
mov dword [esp + 0x54], eax
mov byte [esp + 0x78], 4
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x78], 6
cmp edi, ebx
jne 0x497fee
call fcn.0058204a
xor eax, eax
mov ebx, dword [esp + 0x48]
cmp ebx, dword [eax + 0x14]
jne 0x497ed3
call fcn.0058204a
push 1
push esi
lea ecx, [esp + 0x5c]
call fcn.0049a650
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
add esp, 8
sar eax, 2
test eax, eax
je 0x4983b8
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test eax, eax
jbe 0x4983e5
jmp 0x497f10
mov edx, dword [0x6dc778]
mov eax, dword [edx + 0xc]
mov ecx, 0x6dc778
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sar ecx, 2
cmp ebx, ecx
jb 0x497f40
call fcn.0058204a
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + ebx*4]
lea eax, [esp + 0x14]
push eax
call fcn.004874d0
add esp, 4
mov byte [esp + 0x78], 9
lea edi, [esp + 0x14]
call fcn.0049a960
cmp eax, 3
jb 0x4981c7
mov ecx, dword [esp + 0x14]
push 0x2e
push ecx
call fcn.0058415f
add esp, 8
test eax, eax
je 0x498028
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x498028
lea edx, [esp + 0x20]
push edx
mov ecx, edi
push ecx
mov ecx, eax
call fcn.0042b91b
mov byte [esp + 0x78], 0xa
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x498003
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x497ff5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x497ff5
call fcn.0040b5b4
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x497fe1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x498003
mov eax, dword [edi]
jmp 0x497ec5
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea eax, [esp + 0x1c]
call fcn.0040b4fa
mov byte [esp + 0x78], 9
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0x15
jle 0x4980db
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, 0x15
call fcn.0042b91b
mov byte [esp + 0x78], 0xc
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4980a6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x498098
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498098
call fcn.0040b5b4
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x49808b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x4980a6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea eax, [esp + 0x1c]
call fcn.0040b4fa
mov byte [esp + 0x78], 9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4980cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x691450
lea eax, [esp + 0x1c]
call fcn.0040cdd5
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x49817f
call fcn.0058204a
xor eax, eax
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax + 0x14]
jne 0x4980fc
call fcn.0058204a
mov eax, dword [esp + 0x48]
add eax, 8
lea edx, [esp + 0x2c]
push 0x6880d4
lea ecx, [eax + 4]
push edx
call fcn.004116ea
mov byte [esp + 0x80], 0xe
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
mov esi, eax
call fcn.0041691a
add esp, 0x10
mov byte [esp + 0x78], 0xf
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x498194
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x498186
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x498186
call fcn.0040b5b4
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x498172
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x498194
mov eax, dword [eax]
jmp 0x4980ee
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.0040b4fa
mov byte [esp + 0x78], 0xe
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4981b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 9
mov eax, dword [esp + 0x2c]
jmp 0x49830c
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x498299
call fcn.0058204a
xor eax, eax
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax + 0x14]
jne 0x4981e8
call fcn.0058204a
mov edi, dword [esp + 0x48]
lea edx, [esp + 0x38]
push edx
add edi, 8
push edi
call fcn.00491700
mov esi, eax
mov byte [esp + 0x78], 0x12
cmp dword [esp + 0x44], 0
jne 0x4982a0
call fcn.0058204a
xor eax, eax
mov ecx, dword [esp + 0x48]
cmp ecx, dword [eax + 0x14]
jne 0x498221
call fcn.0058204a
lea edx, [esp + 0x34]
push 0x6880d4
lea ecx, [edi + 4]
push edx
call fcn.004116ea
mov byte [esp + 0x80], 0x13
push esi
lea ecx, [esp + 0x3c]
push ecx
mov esi, eax
call fcn.0041691a
add esp, 0x10
mov byte [esp + 0x78], 0x14
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4982b9
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4982ab
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4982ab
call fcn.0040b5b4
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x49828c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x4982b9
mov eax, dword [eax]
jmp 0x4981da
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
jmp 0x498213
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.0040b4fa
mov byte [esp + 0x78], 0x13
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4982de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 0x12
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498303
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 9
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498328
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sar ecx, 2
cmp ebx, ecx
jb 0x49833c
call fcn.0058204a
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x18]
mov eax, dword [edx + ebx*4]
push ecx
push esi
push eax
call dword [ebp + 8]
test al, al
je 0x4984d4
mov byte [esp + 0x78], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49837d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 6
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49839e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
inc ebx
sar ecx, 2
mov dword [esp + 0x1c], ebx
cmp ebx, ecx
jb 0x497f10
jmp 0x4983e5
test edi, edi
jne 0x49848d
call fcn.0058204a
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4983d1
call fcn.0058204a
mov edx, dword [ebp + 0xc]
mov eax, dword [esi]
push edx
push 0
push eax
call dword [ebp + 8]
test al, al
je 0x4985cb
mov byte [esp + 0x78], 0x22
mov esi, dword [esp + 0x60]
xor eax, eax
cmp esi, eax
je 0x49843f
mov eax, dword [esp + 0x64]
mov edi, eax
mov dword [esp + 0x1c], esi
cmp esi, eax
je 0x498434
mov byte [esp + 0x78], 0x22
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498425
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
mov dword [esp + 0x1c], esi
cmp esi, edi
jne 0x498402
mov esi, dword [esp + 0x60]
push esi
call fcn.0058125d
add esp, 4
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x78], 0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0058125d
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
add esp, 4
test edi, edi
jne 0x498494
call fcn.0058204a
xor eax, eax
mov edx, dword [esp + 0x48]
cmp edx, dword [eax + 0x14]
jne 0x49847e
call fcn.0058204a
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
jmp 0x497df0
mov eax, dword [edi]
jmp 0x4983c7
mov eax, dword [edi]
jmp 0x498470
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x50], 0
je 0x498665
push str.Wow64RevertWow64FsRedirection
push 0x687ef0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x498665
mov edx, dword [esp + 0x4c]
push edx
jmp 0x498663
mov byte [esp + 0x78], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4984f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 6
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49851a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 0x1a
mov byte [esp + 0x78], bl
mov esi, dword [esp + 0x60]
test esi, esi
je 0x498570
mov eax, dword [esp + 0x64]
mov edi, eax
mov dword [esp + 0x3c], esi
cmp esi, eax
je 0x498567
mov byte [esp + 0x78], bl
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498558
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
mov dword [esp + 0x3c], esi
cmp esi, edi
jne 0x498536
mov esi, dword [esp + 0x60]
push esi
call fcn.0058125d
add esp, 4
xor esi, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov byte [esp + 0x78], 0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0058125d
add esp, 4
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x50], esi
je 0x498665
push str.Wow64RevertWow64FsRedirection
push 0x687ef0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x498665
mov edx, dword [esp + 0x4c]
push edx
jmp 0x498663
mov bl, 0x1f
mov byte [esp + 0x78], bl
mov esi, dword [esp + 0x60]
test esi, esi
je 0x498621
mov eax, dword [esp + 0x64]
mov edi, eax
mov dword [esp + 0x3c], esi
cmp esi, eax
je 0x498618
mov byte [esp + 0x78], bl
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498609
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
mov dword [esp + 0x3c], esi
cmp esi, edi
jne 0x4985e7
mov esi, dword [esp + 0x60]
push esi
call fcn.0058125d
add esp, 4
xor esi, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
jmp 0x49857e
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x50], 0
je 0x498665
push str.Wow64RevertWow64FsRedirection
push 0x687ef0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x498665
mov ecx, dword [esp + 0x4c]
push ecx
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10