Function at 0x429700
Capabilities:
Get common file path
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c3f84
mov eax, dword fs:[0]
push eax
sub esp, 0xbbc
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0xbb8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x570f20]
xor eax, esp
push eax
lea eax, [esp + 0xbd0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xbe0]
mov edi, dword [esp + 0xbe4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xbe8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, 0xf
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebp
mov byte [esp + 0x80], 0
mov dword [esp + 0xbd8], ebp
cmp edi, ebp
jne 0x42979a
call fcn.004a90b4
lea edi, [eax + 0x20]
push 0xa4
lea ecx, [esp + 0xa0]
push ebp
push ecx
call fcn.004a6ff0
add esp, 0xc
cmp dword [0x6bb46c], ebp
jne 0x429805
cmp byte [0x5705d3], 1
jne 0x4297ce
call fcn.00401200
cmp dword [0x6bb46c], ebp
jne 0x429805
mov edx, dword [0x6bb474]
push edx
push str._lu:_Stackwalker_not_initialized__or_was_not_able_to_initialize___n
push edi
mov byte [0x5705d3], 0
call fcn.004a706a
add esp, 0xc
cmp dword [esp + 0x94], 0x10
jb 0x42a439
mov eax, dword [esp + 0x80]
push eax
jmp 0x42a431
push 0x6bb478
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x6bb474
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [0x6bbf94]
cmp esi, ebp
jne 0x429844
push 0x418
call fcn.004a7dcb
mov esi, eax
add esp, 4
mov dword [0x6bbf94], esi
cmp esi, ebp
je 0x42a3df
xor ebp, ebp
cmp byte [0x5705d3], 0
je 0x429ce2
push 0x1fa0
call fcn.004a7dcb
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x42a3df
push 0
push 0x4c5776
lea ecx, [esp + 0x88]
call fcn.0040f1e0
push esi
push 0x1fa0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4298e3
push 0x4c88e8
lea ecx, [esp + 0x68]
call fcn.00410ea0
push eax
lea ecx, [esp + 0x4c]
push esi
push ecx
mov byte [esp + 0xbe4], 1
call fcn.00411b80
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbe4], 2
call fcn.0040f0f0
lea ecx, [esp + 0x48]
call fcn.0040d1d0
lea ecx, [esp + 0x64]
mov byte [esp + 0xbd8], 0
call fcn.0040d1d0
push 0x1fa0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4299d4
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429900
sub eax, edx
lea eax, [eax + esi - 1]
cmp eax, esi
jb 0x42992f
mov cl, byte [eax]
cmp cl, 0x5c
je 0x429927
cmp cl, 0x2f
je 0x429927
cmp cl, 0x3a
je 0x429927
dec eax
cmp eax, esi
jae 0x429911
cmp eax, esi
je 0x4299d4
cmp byte [eax], 0x3a
jne 0x429935
inc eax
push 1
push 0x4c88e8
lea ecx, [esp + 0x6c]
mov byte [eax], 0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.0040f1e0
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x4c]
push esi
push eax
mov byte [esp + 0xbe4], 3
call fcn.00411b80
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbe4], 4
call fcn.0040f0f0
mov ebp, 0x10
cmp dword [esp + 0x5c], ebp
jb 0x4299a8
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004a684d
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0xbd8], 0
cmp dword [esp + 0x78], ebp
jb 0x4299d4
mov edx, dword [esp + 0x64]
push edx
call fcn.004a684d
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x1fa0
push esi
push str._NT_SYMBOL_PATH
call ebp
test eax, eax
je 0x429a88
push 1
push 0x4c88e8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.0040f1e0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
push esi
push ecx
mov byte [esp + 0xbe4], 5
call fcn.00411b80
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbe4], 6
call fcn.0040f0f0
cmp dword [esp + 0x5c], 0x10
jb 0x429a5b
mov edx, dword [esp + 0x48]
push edx
call fcn.004a684d
add esp, 4
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0xbd8], 0
jb 0x429a88
mov eax, dword [esp + 0x64]
push eax
call fcn.004a684d
add esp, 4
push 0x1fa0
push esi
push str._NT_ALTERNATE_SYMBOL_PATH
call ebp
test eax, eax
je 0x429b36
push 1
push 0x4c88e8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.0040f1e0
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x4c]
push esi
push edx
mov byte [esp + 0xbe4], 7
call fcn.00411b80
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbe4], 8
call fcn.0040f0f0
cmp dword [esp + 0x5c], 0x10
jb 0x429b09
mov eax, dword [esp + 0x48]
push eax
call fcn.004a684d
add esp, 4
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0xbd8], 0
jb 0x429b36
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004a684d
add esp, 4
push 0x1fa0
push esi
push str.SYSTEMROOT
call ebp
test eax, eax
je 0x429be9
push 1
push 0x4c88e8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
call fcn.0040f1e0
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x4c]
push esi
push eax
mov byte [esp + 0xbe4], 9
call fcn.00411b80
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xbe4], 0xa
call fcn.0040f0f0
mov ebp, 0x10
cmp dword [esp + 0x5c], ebp
jb 0x429bbb
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004a684d
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0xbd8], 0
cmp dword [esp + 0x78], ebp
jb 0x429bee
mov edx, dword [esp + 0x64]
push edx
call fcn.004a684d
add esp, 4
jmp 0x429bee
mov ebp, 0x10
mov eax, dword [esp + 0x90]
test eax, eax
je 0x429c3e
dec eax
push eax
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x8c]
call fcn.00410f10
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0xbdc], 0xb
call fcn.00411360
mov byte [esp + 0xbd8], 0
cmp dword [esp + 0x5c], ebp
jb 0x429c3e
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004a684d
add esp, 4
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], ebp
jae 0x429c55
lea eax, [esp + 0x80]
push 0x1fa0
push eax
push esi
call fcn.004a7850
mov ebx, dword [esp + 0x28]
add esp, 0xc
push 0
push esi
push ebx
mov byte [esi + 0x1f9f], 0
call dword [0x6bb4b4]
test eax, eax
jne 0x429cb0
cmp dword [0x6bb444], 2
je 0x429ca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x6bb474]
push eax
push edx
push str._lu:_SymInitialize__:_GetLastError___lu_n
push edi
call fcn.004a706a
add esp, 0x10
push esi
call fcn.004a7513
add esp, 4
jmp 0x42a3df
call dword [0x6bb4ac]
and eax, 0xfffffff9
or eax, ebp
push eax
call dword [0x6bb4bc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
mov ecx, edi
call fcn.004295e0
push esi
call fcn.004a7513
mov esi, dword [0x6bbf94]
add esp, 0xc
xor ebp, ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xb8]
mov edx, dword [eax + 0xb4]
push 0x418
mov dword [esp + 0xa0], ecx
mov ecx, 3
push ebp
push esi
mov byte [0x5705d3], 0
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc8], ecx
call fcn.004a6ff0
push 0x23c
mov dword [esi], 0x18
mov dword [esi + 0x10], 0x400
pxor xmm0, xmm0
lea eax, [esp + 0x150]
push ebp
movq qword [esp + 0x44], xmm0
push eax
movq qword [esp + 0x50], xmm0
mov dword [esp + 0x58], ebp
mov dword [esp + 0x48], 0x14
call fcn.004a6ff0
mov ecx, dword [0x6bb4a4]
mov edx, dword [0x6bb49c]
mov eax, dword [esp + 0x3c]
add esp, 0x18
push ebp
push ecx
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
push ebp
lea ecx, [esp + 0xb0]
push ecx
push edx
push eax
push 0x14c
mov dword [esp + 0x164], 0x23c
mov dword [esp + 0x38], ebp
call dword [0x6bb4c0]
test eax, eax
je 0x42a3b3
mov esi, 1
lea ebx, [esi + 0xf]
cmp dword [0x6bb444], esi
jne 0x429dd8
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6bb474]
push ecx
push edx
push str._lu:__3d
push edi
call fcn.004a706a
add esp, 0x10
mov eax, dword [esp + 0x9c]
cmp eax, ebp
jne 0x429e25
mov eax, dword [0x6bb444]
sub eax, ebp
je 0x429e0c
sub eax, esi
je 0x429e02
sub eax, esi
jne 0x42a360
push str._STACKENTRY_decl___nosymbols__PC__0_____n
jmp 0x42a357
push str._____nosymbols__PC__0__n
jmp 0x42a357
mov eax, dword [0x6bb474]
push eax
push str._lu:___nosymbols__PC__0__n
push edi
call fcn.004a706a
add esp, 0xc
jmp 0x42a360
mov ecx, dword [0x6bbf94]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
xor esi, esi
mov byte [esp + 0x3dc], 0
mov byte [esp + 0x7dc], 0
mov dword [esp + 0x28], ebp
call dword [0x6bb4b0]
test eax, eax
jne 0x429e9e
cmp dword [0x6bb444], 1
jne 0x429f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1e7
je 0x429e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.___SymGetSymFromAddr__:_GetLastError___lu_n
push edi
call fcn.004a706a
add esp, 0xc
jmp 0x429f77
push 0x4c6234
push edi
call fcn.004a706a
add esp, 8
jmp 0x429f77
mov edx, dword [0x6bbf94]
push 0x1000
push 0x400
lea ecx, [esp + 0x3d4]
push ecx
add edx, 0x14
push edx
call dword [0x6bb4c4]
mov ecx, dword [0x6bbf94]
push ebp
push 0x400
lea eax, [esp + 0x7d4]
push eax
add ecx, 0x14
push ecx
call dword [0x6bb4c4]
cmp dword [0x6bb444], 1
jne 0x429f77
lea eax, [esp + 0x3cc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429ef5
sub eax, edx
je 0x429f1d
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x3d0]
push eax
push str.______s__ld_bytes_n
push edi
call fcn.004a706a
add esp, 0x10
jmp 0x429f5a
mov ecx, dword [esp + 0x18]
mov edx, dword [0x6bbf94]
push ecx
add edx, 0x14
push edx
push str._____Sig:___s__ld_bytes_n
push edi
call fcn.004a706a
mov eax, dword [0x6bbf94]
add eax, 0x14
lea edx, [esp + 0x3dc]
add esp, 0x10
sub edx, eax
jmp 0x429f50
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x429f50
mov ecx, dword [0x6bb474]
lea eax, [esp + 0x7cc]
push eax
push ecx
push str._lu:_____Decl:__s_n
push edi
call fcn.004a706a
add esp, 0x10
mov eax, dword [0x6bb4a0]
mov dword [esp + 0x20], ebp
cmp eax, ebp
je 0x42a14b
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0xa0]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
call eax
test eax, eax
jne 0x42a051
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1e7
je 0x42a14b
cmp dword [esp + 0x14], ebp
jle 0x42a14b
cmp dword [0x6bb444], 2
jne 0x42a030
push str._STACKENTRY
push edi
call fcn.004a706a
lea edx, [esp + 0x3d4]
push edx
lea eax, [esp + 0x54]
push eax
mov esi, 1
call fcn.00411f10
add esp, 0x10
cmp dword [eax + 0x14], ebx
jb 0x429ff9
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push ecx
push eax
push str.decl__s__decl_offset__ld_
push edi
call fcn.004a706a
add esp, 0x10
lea ecx, [esp + 0x48]
call fcn.0040d1d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.srcfile_SymGetLineFromAddr__:_GetLastError___lu_
push edi
call fcn.004a706a
add esp, 0xc
jmp 0x42a14b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x6bb474]
push eax
push edx
push str._lu:_SymGetLineFromAddr__:_GetLastError___lu_n
push edi
call fcn.004a706a
add esp, 0x10
jmp 0x42a14b
mov eax, dword [0x6bb444]
sub eax, ebp
je 0x42a11f
dec eax
je 0x42a0fa
dec eax
jne 0x42a14b
push str._STACKENTRY
push edi
call fcn.004a706a
lea eax, [esp + 0x3d4]
push eax
lea ecx, [esp + 0x54]
push ecx
mov esi, 1
call fcn.00411f10
add esp, 0x10
cmp dword [eax + 0x14], ebx
jb 0x42a098
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
push edx
push eax
push str.decl__s__decl_offset__ld_
push edi
call fcn.004a706a
add esp, 0x10
lea ecx, [esp + 0x48]
call fcn.0040d1d0
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.00411f10
add esp, 8
cmp dword [eax + 0x14], ebx
jb 0x42a0ce
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3cc]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
push eax
push str.srcfile__s__line__lu__line_offset__ld_
push edi
call fcn.004a706a
add esp, 0x18
lea ecx, [esp + 0x64]
call fcn.0040d1d0
jmp 0x42a14b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [0x6bb474]
push ecx
push edx
push eax
push str._lu:_____Line:__s__lu___ld_bytes_n
push edi
call fcn.004a706a
add esp, 0x18
jmp 0x42a14b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3cc]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [0x6bb474]
push eax
push ecx
push edx
push str._lu:__s__lu___ld_bytes___s__n
push edi
call fcn.004a706a
add esp, 0x1c
mov eax, dword [0x6bb444]
cmp eax, 1
je 0x42a15e
cmp eax, 2
jne 0x42a360
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x140]
push eax
push ecx
push edx
call dword [0x6bb4a8]
test eax, eax
jne 0x42a1a1
cmp dword [0x6bb444], 1
jne 0x42a344
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x6bb474]
push eax
push str._lu:_SymGetModuleInfo_:_GetLastError___lu_n
jmp 0x42a33b
mov eax, dword [esp + 0x158]
cmp eax, 6
ja case.default.0x42a1b1
jmp dword [eax*4 + 0x42a464]
mov ecx, dword [0x4c8670]
movq xmm0, qword [str._nosymbols_]
movq qword [esp + 0x37c], xmm0
mov dword [esp + 0x384], ecx
jmp 0x42a2ab
mov edx, dword [str.COFF]
mov al, byte [0x4c8664]
mov dword [esp + 0x37c], edx
mov byte [esp + 0x380], al
jmp 0x42a2ab
mov cx, word [0x4c865c]
mov dl, byte [0x4c865e]
mov word [esp + 0x37c], cx
mov byte [esp + 0x37e], dl
jmp 0x42a2ab
mov dword [esp + 0x37c], 0x424450
jmp 0x42a2ab
mov ax, word [0x4c8658]
mov cl, byte [0x4c865a]
movq xmm0, qword [str._exported_]
movq qword [esp + 0x37c], xmm0
mov word [esp + 0x384], ax
mov byte [esp + 0x386], cl
jmp 0x42a2ab
mov dx, word [0x4c864c]
mov al, byte [0x4c864e]
movq xmm0, qword [str._deferred_]
movq qword [esp + 0x37c], xmm0
mov word [esp + 0x384], dx
mov byte [esp + 0x386], al
jmp 0x42a2ab
mov dword [esp + 0x37c], 0x4d5953
jmp 0x42a2ab
push eax
push str.symtype_ld
lea ecx, [esp + 0x384]
push 0x50
push ecx
call fcn.004a75d1
add esp, 0x10
cmp dword [0x6bb444], 1
jne 0x42a321
mov edx, dword [esp + 0x144]
mov ecx, dword [0x6bb474]
push edx
lea eax, [esp + 0x160]
push eax
push ecx
push str._lu:_____Mod:___s__base:__08lxh_n
push edi
call fcn.004a706a
add esp, 0x14
cmp dword [esp + 0x158], ebp
jne 0x42a344
mov edx, dword [esp + 0x9c]
mov eax, dword [0x6bb474]
push edx
push eax
push str._lu:_____Offset:_0x_8.8x_n
push edi
call fcn.004a706a
mov eax, dword [0x6bb474]
lea ecx, [esp + 0x28c]
push ecx
lea edx, [esp + 0x390]
push edx
push eax
push str._lu:_____Sym:__type:__s__file:__s_n
push edi
call fcn.004a706a
add esp, 0x24
jmp 0x42a344
cmp esi, 1
jne 0x42a344
mov ecx, dword [esp + 0x144]
push ecx
lea edx, [esp + 0x160]
push edx
push str.module__s__base__08lx_
push edi
call fcn.004a706a
add esp, 0x10
cmp dword [0x6bb444], 2
jne 0x42a360
cmp esi, 1
jne 0x42a360
push 0x4c85b4
push edi
call fcn.004a706a
add esp, 8
push ebp
cmp dword [esp + 0xac], ebp
je 0x42a3ad
mov eax, dword [0x6bb4a4]
mov ecx, dword [0x6bb49c]
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push ebp
lea eax, [esp + 0xb0]
push eax
push ecx
push edx
mov esi, 1
add dword [esp + 0x34], esi
push 0x14c
call dword [0x6bb4c0]
test eax, eax
jne 0x429db6
jmp 0x42a3b3
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x6bb444], 2
je 0x42a3df
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x42a3df
call esi
push eax
mov eax, dword [0x6bb474]
push eax
push str._n_lu:_StackWalk__:_GetLastError___lu_n
push edi
call fcn.004a706a
add esp, 0x10
test edi, edi
je 0x42a414
push 0x4c8588
push edi
call fcn.004a706a
mov ecx, dword [0x6bb474]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul edx, edx, 0x3e8
add esp, 8
sub ecx, edx
je 0x42a414
push edi
call fcn.004a93f3
add esp, 4
push 0x6bb478
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x94], 0x10
jb 0x42a439
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004a684d
add esp, 4
mov ecx, dword [esp + 0xbd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbb8]
xor ecx, esp
call fcn.004a7314
add esp, 0xbc8
ret