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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff88
mov ebx, eax
mov esi, 0x449d68
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [esp], eax
mov edx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov dword [esp + 4], edx
mov ecx, dword [esp]
mov eax, dword [ecx]
cmp eax, dword [esp + 4]
jne 0x701b35
mov eax, dword [esp]
call fcn.00708799
mov dl, 1
jmp 0x701b37
xor edx, edx
test dl, dl
jne 0x702311
mov eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
sub eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
and eax, dword [ebx + 0x24]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0x101
jae 0x701b62
mov ecx, dword [esp + 8]
jmp 0x701b67
mov ecx, 0x101
mov dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], ecx
mov eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov edx, dword [ebx]
mov ecx, eax
inc ecx
mov dl, byte [edx + eax]
mov byte [esp + 0xc], dl
and ecx, dword [ebx + 0x24]
mov edx, dword [ebx]
mov cl, byte [edx + ecx]
xor edx, edx
mov byte [esp + 0xd], cl
xor ecx, ecx
mov cl, byte [esp + 0xd]
mov dl, byte [esp + 0xc]
shl ecx, 8
add edx, ecx
and edx, 0x3fff
mov dword [esp + 0x10], edx
mov edx, eax
mov ecx, dword [ebx]
mov edi, dword [ebx]
movzx edi, byte [edi + edx + 1]
movzx ecx, byte [ecx + edx + 2]
mov edi, dword [esi + edi*4]
shl edi, 3
mov ecx, dword [esi + ecx*4]
shl ecx, 7
add ecx, edi
mov edi, dword [ebx]
movzx edx, byte [edi + edx]
add ecx, edx
mov edx, dword [ebx]
mov edi, ecx
xor ecx, ecx
mov cl, byte [edx + eax + 3]
and edi, 0x3ffff
mov edx, dword [esi + ecx*4]
add edx, edi
and edx, 0x3ffff
mov dword [esp + 0x14], edx
mov ecx, dword [ebx]
movzx eax, byte [ecx + eax + 4]
mov eax, dword [esi + eax*4]
add eax, eax
add eax, dword [esp + 0x14]
and eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], eax
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov ebp, dword [esp + 0x14]
movzx edx, byte [edx + ecx]
mov ecx, dword [ebx + 8]
and eax, 0xffffff00
or edx, eax
movzx eax, word [ecx + edi*2]
mov ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
and ecx, 0xffff0000
or eax, ecx
mov ecx, dword [ebx + 0xc]
and eax, dword [ebx + 0x24]
mov ecx, dword [ecx + ebp*4]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x10]
mov ebp, dword [esp + 0x18]
mov ecx, dword [ecx + ebp*4]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 4]
mov ebp, dword [esp + 0x10]
lea ebp, [ecx + ebp]
mov cl, byte [ebx + 0x149c]
mov byte [ebp], cl
mov bp, word [ebx + 0x149c]
mov ecx, dword [ebx + 8]
mov word [ecx + edi*2], bp
mov ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x14]
mov ebp, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov dword [ecx + edi*4], ebp
mov ecx, dword [ebx + 0x10]
mov edi, dword [esp + 0x18]
mov ebp, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov dword [ecx + edi*4], ebp
cmp eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
jb 0x701ca5
sub eax, 0x10000
and eax, dword [ebx + 0x24]
cmp edx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
jb 0x701cb6
sub edx, 0x100
and edx, dword [ebx + 0x24]
mov ecx, dword [esp + 0x20]
mov edi, dword [ebx]
movzx edi, byte [edi + ecx + 2]
mov edi, dword [esi + edi*4]
shl edi, 7
mov dword [esp + 0x28], edi
mov edi, dword [ebx]
movzx edi, byte [edi + ecx + 1]
mov edi, dword [esi + edi*4]
shl edi, 3
add dword [esp + 0x28], edi
mov edi, dword [ebx]
movzx edi, byte [edi + ecx]
add dword [esp + 0x28], edi
mov edi, dword [esp + 0x28]
and edi, 0x3ffff
mov dword [esp + 0x24], edi
mov edi, dword [ebx]
movzx edi, byte [edi + ecx + 3]
mov edi, dword [esi + edi*4]
add edi, dword [esp + 0x24]
and edi, 0x3ffff
mov dword [esp + 0x2c], edi
mov edi, dword [ebx]
movzx ecx, byte [edi + ecx + 4]
mov ecx, dword [esi + ecx*4]
add ecx, ecx
add ecx, dword [esp + 0x2c]
and ecx, dword [ebx + 0x1c]
cmp ecx, dword [esp + 0x18]
je 0x701d2b
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx]
mov edi, dword [esp + 0x1c]
mov cl, byte [ecx + edi]
mov byte [esp + 0x30], cl
mov ecx, dword [ebx]
mov cl, byte [ecx + eax]
mov byte [esp + 0x31], cl
mov ecx, dword [ebx]
mov cl, byte [ecx + edx]
mov byte [esp + 0x32], cl
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov ebp, dword [esp + 0x20]
mov dword [ecx + edi*4], ebp
mov dword [ebx + 0x58], 1
mov ecx, 1
jmp 0x701d74
mov edi, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
xor ebp, ebp
mov dword [edi + ecx*4], ebp
inc ecx
cmp ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
jle 0x701d68
xor ecx, ecx
mov dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], ecx
mov cl, byte [esp + 0x30]
cmp cl, byte [esp + 0xc]
jne 0x701e3d
mov ecx, dword [esp + 0x1c]
inc ecx
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
cmp cl, byte [esp + 0xd]
jne 0x701e3d
mov ecx, dword [esp + 0x1c]
add ecx, 2
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
mov edi, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
add edi, 2
and edi, dword [ebx + 0x24]
mov ebp, dword [ebx]
cmp cl, byte [ebp + edi]
jne 0x701e3d
mov ecx, dword [esp + 0x1c]
add ecx, 3
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
mov edi, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
add edi, 3
and edi, dword [ebx + 0x24]
mov ebp, dword [ebx]
cmp cl, byte [ebp + edi]
jne 0x701e3d
cmp dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], 3
jle 0x701e3d
mov ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
sub ecx, dword [esp + 0x1c]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x34], 0x40000
jae 0x701e3d
cmp dword [esp + 0x34], 0
jbe 0x701e3d
mov ecx, dword [esp + 0x34]
cmp ecx, dword [ebx + 0x28]
jae 0x701e3d
mov dword [ebx + 0x58], 4
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov edi, dword [ebx + 0x54]
mov dword [ecx + 0x10], edi
mov cl, byte [esp + 0x31]
cmp cl, byte [esp + 0xc]
jne 0x701ed0
lea ecx, [eax + 1]
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
cmp cl, byte [esp + 0xd]
jne 0x701ed0
lea ecx, [eax + 2]
and ecx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov cl, byte [edi + ecx]
mov edi, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
add edi, 2
and edi, dword [ebx + 0x24]
mov ebp, dword [ebx]
cmp cl, byte [ebp + edi]
jne 0x701ed0
cmp dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], 2
jle 0x701ed0
mov ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
sub ecx, eax
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x38], 0x2000
jae 0x701ed0
cmp dword [esp + 0x38], 0
jbe 0x701ed0
cmp dword [ebx + 0x58], 4
jl 0x701eb6
mov eax, dword [ebx + 0x54]
shr eax, 5
cmp eax, dword [esp + 0x38]
jbe 0x701ed0
mov dword [ebx + 0x58], 3
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x54], eax
mov ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov eax, dword [ebx + 0x54]
mov dword [ecx + 0xc], eax
cmp dword [ebx + 0x58], 4
jge 0x701f35
mov cl, byte [esp + 0x32]
cmp cl, byte [esp + 0xc]
jne 0x701f35
lea eax, [edx + 1]
and eax, dword [ebx + 0x24]
mov ecx, dword [ebx]
mov al, byte [ecx + eax]
cmp al, byte [esp + 0xd]
jne 0x701f35
cmp dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], 1
jle 0x701f35
mov ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
sub ecx, edx
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x3c], ecx
cmp dword [ebx + 0x58], 1
je 0x701f1b
mov edx, dword [ebx + 0x54]
shr edx, 0xa
cmp edx, dword [esp + 0x3c]
jbe 0x701f35
mov dword [ebx + 0x58], 2
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x54], eax
mov edx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov ecx, dword [ebx + 0x54]
mov dword [edx + 8], ecx
cmp dword [ebx + 0x58], 1
jle 0x701f45
mov dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], 4
cmp dword [esp + 0x20], 0
je 0x701f5e
push dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x34]
mov eax, ebx
call fcn.00702319
cmp dword [ebx + 0x58], 2
jl 0x701f7c
cmp byte [ebx + 0x14a1], 0
jne 0x701f78
mov eax, dword [ebx + 0x54]
cmp eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
ja 0x701f7c
xor edx, edx
jmp 0x701f81
mov edx, 1
mov byte [esp + 0x40], dl
cmp byte [esp + 0x40], 0
jne 0x701fab
cmp dword [ebx + 0x30], 2
jl 0x701fab
mov ecx, dword [ebx + 0x58]
cmp ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
jge 0x701fab
mov edx, dword [ebx + 0x38]
mov eax, ebx
call fcn.00702665
test al, al
jne 0x701faf
xor ecx, ecx
jmp 0x701fb4
mov ecx, 1
mov byte [esp + 0x41], cl
cmp byte [esp + 0x40], 0
jne 0x701fca
cmp byte [esp + 0x41], 0
je 0x7020c2
cmp byte [ebx + 0x74], 0
je 0x70202d
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [esp + 0x44], eax
mov dl, byte [ebx + 0x68]
mov byte [esp + 0x48], dl
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [edx + 0x18]
lea eax, [eax + eax*2]
mov byte [ecx + eax*4], 0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x18]
mov cl, byte [esp + 0x48]
lea edx, [edx + edx*2]
mov byte [eax + edx*4 + 1], cl
mov edx, dword [esp + 0x44]
inc dword [edx + 0x1c]
mov eax, dword [edx + 0x1c]
cmp eax, 0x4000
jb 0x702029
mov eax, dword [esp + 0x44]
call fcn.0070a181
mov byte [ebx + 0x74], 0
cmp byte [ebx + 0x64], 0
je 0x702044
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x60]
mov eax, ebx
call fcn.00702f35
mov byte [ebx + 0x64], 0
cmp byte [esp + 0x41], 0
je 0x70206c
xor edx, edx
mov dl, byte [esp + 0xc]
mov dword [ebx + 0x68], edx
mov ecx, dword [ebx + 0x6c]
mov dword [ebx + 0x78], ecx
mov eax, dword [ebx + 0x54]
mov dword [ebx + 0x6c], eax
mov edx, dword [ebx + 0x58]
mov dword [ebx + 0x70], edx
mov byte [ebx + 0x74], 1
jmp 0x7020ad
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov dl, byte [esp + 0xc]
mov byte [esp + 0x49], dl
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
mov edx, dword [eax + 0x18]
mov byte [edx + ecx*4], 0
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*2]
mov edx, dword [eax + 0x18]
lea edx, [edx + ecx*4 + 1]
mov cl, byte [esp + 0x49]
mov byte [edx], cl
inc dword [eax + 0x1c]
mov edx, dword [eax + 0x1c]
cmp edx, 0x4000
jb 0x7020ad
call fcn.0070a181
mov eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], eax
jmp 0x70222c
mov eax, ebx
call fcn.0070309d
mov edx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
inc edx
and edx, dword [ebx + 0x24]
mov dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], edx
xor ecx, ecx
mov dword [esp + 0x4c], ecx
jmp 0x70221e
mov eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov edi, dword [ebx]
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax]
lea edx, [eax + 1]
and edx, dword [ebx + 0x24]
movzx edx, byte [edi + edx]
shl edx, 8
add edx, ecx
mov dword [esp + 0x50], edx
mov edx, dword [ebx]
mov edi, dword [ebx]
movzx edi, byte [edi + eax + 1]
movzx edx, byte [edx + eax + 2]
mov edi, dword [esi + edi*4]
shl edi, 3
mov edx, dword [esi + edx*4]
shl edx, 7
add edx, edi
mov edi, dword [ebx]
add edx, ecx
mov ecx, dword [ebx]
and edx, 0x3ffff
movzx ecx, byte [ecx + eax + 3]
mov ecx, dword [esi + ecx*4]
add ecx, edx
and ecx, 0x3ffff
mov dword [esp + 0x54], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax + 4]
mov edi, dword [esi + ecx*4]
mov ecx, dword [ebx + 0x10]
add edi, edi
add edi, dword [esp + 0x54]
and edi, dword [ebx + 0x1c]
mov ecx, dword [ecx + edi*4]
and ecx, dword [ebx + 0x24]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x50]
mov ebp, dword [ebx + 4]
and ecx, 0x3fff
lea ecx, [ebp + ecx]
push ecx
pop ecx
mov byte [ecx], al
mov ecx, dword [ebx + 8]
mov word [ecx + edx*2], ax
mov ecx, dword [esp + 0x54]
mov edx, dword [ebx + 0xc]
mov dword [edx + ecx*4], eax
mov edx, dword [ebx + 0x10]
mov dword [edx + edi*4], eax
mov edx, dword [esp + 0x58]
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx + 2]
mov ecx, dword [esi + ecx*4]
shl ecx, 7
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx + 1]
mov ecx, dword [esi + ecx*4]
shl ecx, 3
add dword [esp + 0x60], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx]
add dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x60]
and ecx, 0x3ffff
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx]
movzx ecx, byte [ecx + edx + 3]
mov ecx, dword [esi + ecx*4]
add ecx, dword [esp + 0x5c]
and ecx, 0x3ffff
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx]
movzx edx, byte [ecx + edx + 4]
mov edx, dword [esi + edx*4]
add edx, edx
add edx, dword [esp + 0x64]
and edx, dword [ebx + 0x1c]
cmp edi, edx
je 0x702200
xor ecx, ecx
mov dword [esp + 0x58], ecx
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x58]
mov dword [edx + eax*4], ecx
mov eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
inc eax
and eax, dword [ebx + 0x24]
mov dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], eax
inc dword [esp + 0x4c]
mov eax, dword [ebx + 0x58]
dec eax
cmp eax, dword [esp + 0x4c]
jg 0x7020e4
lea edx, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [esp + 0x68], edx
mov ecx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
mov edx, dword [eax]
sub edx, dword [esp + 0x6c]
and edx, dword [ecx + reloc.PSAPI.DLL_GetMappedFileNameW]
cmp edx, 0x111
jae 0x702269
mov eax, dword [esp + 0x68]
call fcn.00708799
mov dl, 1
jmp 0x70226b
xor edx, edx
test dl, dl
je 0x701b6d
cmp byte [ebx + 0x74], 0
je 0x7022d7
lea eax, reloc.PSAPI.DLL_GetMappedFileNameW
mov dword [esp + 0x70], eax
mov cl, byte [ebx + 0x68]
mov byte [esp + 0x74], cl
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov edx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x18]
lea edx, [edx + edx*2]
mov byte [eax + edx*4], 0
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov ecx, dword [edx + 0x1c]
mov edx, dword [eax + 0x18]
mov al, byte [esp + 0x74]
lea ecx, [ecx + ecx*2]
mov byte [edx + ecx*4 + 1], al
mov edx, dword [esp + 0x70]
inc dword [edx + 0x1c]
mov ecx, dword [edx + 0x1c]
cmp ecx, 0x4000
jb 0x7022d3
mov eax, dword [esp + 0x70]
call fcn.0070a181
mov byte [ebx + 0x74], 0
cmp byte [ebx + 0x64], 0
je 0x7022ee
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x60]
mov eax, ebx
call fcn.00702f35
mov byte [ebx + 0x64], 0
mov eax, 1
jmp 0x702301
mov edx, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
xor ecx, ecx
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW]
jle 0x7022f5
xor eax, eax
mov dword [ebx + reloc.PSAPI.DLL_GetMappedFileNameW], eax
add esp, 0x78
pop ebp
pop edi
pop esi
pop ebx
ret