Function at 0x429970
Capabilities:
Get common file path
Parse pe header

Disassembly:
sub esp, 0x32c
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x328], eax
mov eax, dword [esp + 0x334]
mov ecx, dword [esp + 0x338]
push ebx
mov ebx, dword [esp + 0x334]
push ebp
mov dword [esp + 8], eax
mov dword [esp + 0x28], ecx
call fcn.00429280
mov ebp, eax
test ebp, ebp
jne 0x4299c8
lea eax, [ebp + 1]
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.004b6da3
add esp, 0x32c
ret
movzx edx, word [0x53b28a]
push esi
push 1
push 0
add edx, 0x53b28c
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x429a06
lea eax, [esi + 2]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.004b6da3
add esp, 0x32c
ret
mov eax, 0x5a4d
cmp word [esi], ax
je 0x429a2d
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.004b6da3
add esp, 0x32c
ret
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
je 0x429a57
pop esi
pop ebp
mov eax, 0x17
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.004b6da3
add esp, 0x32c
ret
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 8]
push edi
push 0x515de8
mov dword [esp + 0x30], ecx
mov dword [ebx + 0x21c], edx
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
mov edi, eax
test edi, edi
jne 0x429a8a
lea eax, [edi + 3]
jmp 0x42a31d
sub edi, esi
lea eax, [edi + ebp]
push edi
push 0x515dc4
mov dword [ebx + 0x20c], eax
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
push edi
push esi
call fcn.00429500
mov edi, eax
add esp, 0x14
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x429aca
lea eax, [edi + 4]
jmp 0x42a31d
lea ecx, [edi + ebp]
push edi
push esi
mov dword [ebx + 0x210], ecx
call fcn.00429600
add esp, 8
push eax
push edi
push 0x515da0
mov dword [esp + 0x20], eax
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
cmp dword [esp + 0x14], 0x400
jae 0x429b85
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b97b1
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [ebx + 0x214], esi
mov eax, dword [ecx]
lea ecx, [esi*4]
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0x218], eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [eax]
lea edx, [edi + esi]
push edx
push ecx
call fcn.004b6e40
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x14], eax
jbe 0x429b93
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
lea edx, [ecx + eax*4]
mov dword [esp + 0x24], edx
mov ecx, edx
mov edx, ebp
sub edx, dword [0x53b64c]
inc eax
add dword [ecx], edx
cmp eax, dword [esp + 0x14]
jb 0x429b63
jmp 0x429b93
xor eax, eax
mov dword [ebx + 0x214], eax
mov dword [ebx + 0x218], eax
cmp dword [0x53b540], 0
je 0x429d5e
cmp dword [0x53b544], 0
je 0x429d5e
cmp dword [0x53b658], 0
je 0x429d5e
push 0x104
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x515d90
call fcn.00404690
add esp, 4
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429be0
lea edi, [esp + 0x34]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x429bf0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
mov ecx, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push closesocket
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x429d56
push 0
push 0
push 0
push 2
push 0
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
je 0x429d4b
push 0
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esp + 0x10], eax
test eax, eax
je 0x429d44
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429d35
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x429d35
mov edx, dword [edi + 8]
mov dword [ebx + 0x224], edx
mov eax, dword [0x53b540]
sub eax, dword [0x53b658]
push eax
push edi
call fcn.00429640
mov esi, dword [0x53b544]
add esp, 8
mov dword [esp + 0x24], eax
cmp esi, 0x600
jae 0x429d2b
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b97b1
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov dword [esi], eax
mov dword [ebx + 0x220], eax
mov eax, dword [0x53b544]
lea ecx, [eax*4]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esi]
add edx, eax
push edx
push ecx
call fcn.004b6e40
xor eax, eax
add esp, 0x10
cmp dword [0x53b544], eax
jbe 0x429d35
mov edx, dword [esi]
lea ecx, [edx + eax*4]
mov edx, dword [0x53b658]
sub edx, dword [edi + 0x34]
inc eax
add dword [ecx], edx
cmp eax, dword [0x53b544]
jb 0x429d10
jmp 0x429d35
mov dword [ebx + 0x220], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
xor al, al
cmp byte [0x53b538], al
je 0x429d8a
cmp byte [0x53b38f], al
je 0x429d8a
push 0x515d84
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
mov al, 1
test dword [0x5378cc], 0x800
jne 0x429e65
cmp dword [0x54a138], 0x4e22
jb 0x429e65
test al, al
jne 0x429e65
push 0x104
lea edx, [esp + 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x1ff
lea eax, [esp + 0x13d]
push 0
push eax
mov byte [esp + 0x144], 0
call fcn.004b6dc0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x148]
push edx
lea eax, [esp + 0x48]
push ebp
push eax
mov dword [esp + 0x34], 0
call fcn.00429690
movzx ecx, byte [esp + 0x154]
mov edx, dword [esp + 0x34]
add esp, 0x1c
push ecx
push edx
push eax
push 0x515d58
mov dword [esp + 0x20], eax
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x14
cmp dword [esp + 0x10], 0
je 0x429e5b
mov eax, dword [esp + 0x10]
add eax, ebp
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x13c]
push ecx
lea edx, [ebx + 0xc]
push edx
mov dword [ebx + 8], eax
call fcn.004b6e40
jmp 0x429e7c
mov eax, 5
jmp 0x42a31d
xor eax, eax
push 0x200
push eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [ebx + 0xc]
push eax
call fcn.004b6dc0
mov ecx, dword [0x53b534]
add esp, 0xc
test ecx, ecx
je 0x429f1d
cmp dword [0x54a138], 0x4e22
jbe 0x429f1d
mov eax, ecx
sub eax, ebp
push eax
push ecx
push 0x515d44
mov dword [esp + 0x34], eax
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov ecx, dword [esp + 0x38]
add esp, 0x10
add ecx, esi
mov dword [ebx + 0x228], 0xaa
cmp dword [0x54a138], 0x4e8e
mov edx, 0x50
mov dword [esp + 0x18], edx
jb 0x429ef0
mov edx, 0x2a
mov dword [esp + 0x18], edx
cmp ecx, esi
jb 0x429f1d
mov eax, dword [esp + 0x2c]
add eax, esi
cmp ecx, eax
jae 0x429f1d
xor eax, eax
test edx, edx
jle 0x429f1d
movzx edx, byte [eax + ecx]
sub edx, eax
add edx, 0x700
add dword [ebx + 0x228], edx
inc eax
cmp eax, dword [esp + 0x18]
jl 0x429f04
push 0x515d24
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
test eax, eax
je 0x429f3f
sub eax, esi
add eax, ebp
mov dword [ebx + 0x22c], eax
push 0x515d10
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
push 0x515cf8
mov dword [esp + 0x20], eax
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
mov dword [esp + 0x10], 0
test eax, eax
je 0x429fd3
cmp dword [0x537cec], 0
je 0x429fd3
cmp dword [0x54a138], 0x4e22
je 0x429fd3
xor ecx, ecx
mov dl, 0xb1
cmp byte [ecx + eax], 0xe8
jne 0x429fa3
cmp byte [ecx + eax - 2], dl
jne 0x429fa3
cmp byte [ecx + eax - 1], 1
je 0x429fae
inc ecx
cmp ecx, 0x1000
jl 0x429f90
jmp 0x429fd3
mov edx, dword [ecx + eax + 1]
add edx, ecx
add eax, edx
mov cl, 0x74
cmp byte [eax + 9], cl
jne 0x429fc2
add eax, 0xf
jmp 0x429fcf
cmp byte [eax + 0xa], cl
jne 0x429fcc
add eax, 0x10
jmp 0x429fcf
add eax, 5
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], 0
je 0x42a0e4
mov eax, dword [esp + 0x1c]
push 4
push eax
mov dword [esp + 0x1c], 0
call fcn.00423030
add esp, 8
test eax, eax
je 0x42a05a
cmp dword [0x54a138], 0x4e22
mov edx, dword [esp + 0x1c]
jne 0x42a023
cmp byte [eax + edx + 3], 0xeb
lea ecx, [eax + edx + 3]
jne 0x42a023
push 4
push ecx
call fcn.00423030
mov edx, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x42a05a
cmp byte [eax + edx], 0xe8
jne 0x42a055
mov cl, byte [eax + edx - 1]
cmp cl, 0x56
je 0x42a336
cmp cl, 0xc6
je 0x42a336
cmp cl, 8
je 0x42a336
cmp cl, 0xce
je 0x42a336
sub eax, 1
jne 0x42a027
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42a070
sub eax, esi
add eax, ebp
mov dword [ebx + 0x274], eax
test ecx, ecx
je 0x42a07e
sub ecx, esi
add ecx, ebp
mov dword [ebx + 0x234], ecx
mov eax, dword [ebx + 0x274]
push eax
push 0x515cec
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov ecx, dword [ebx + 0x230]
add esp, 0xc
push ecx
push 0x515ce0
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov edx, dword [ebx + 0x234]
add esp, 0xc
push edx
push 0x515cd0
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push 0x515cbc
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov ecx, ebp
sub ecx, dword [0x53b64c]
add eax, esi
add ecx, dword [eax]
push 0x515ca4
mov dword [ebx + 0x238], ecx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov edx, ebp
sub edx, dword [0x53b64c]
add eax, esi
add edx, dword [eax]
push 0x515c88
mov dword [ebx + 0x23c], edx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov ecx, ebp
sub ecx, dword [0x53b64c]
add eax, esi
add ecx, dword [eax]
push 0x515c6c
mov dword [ebx + 0x240], ecx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov edx, ebp
sub edx, dword [0x53b64c]
add eax, esi
add edx, dword [eax]
push 0x515c50
mov dword [ebx + 0x244], edx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov ecx, ebp
sub ecx, dword [0x53b64c]
add eax, esi
add ecx, dword [eax]
push 0x515c30
mov dword [ebx + 0x248], ecx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov edx, ebp
sub edx, dword [0x53b64c]
add eax, esi
add edx, dword [eax]
push 0x515c1c
mov dword [ebx + 0x24c], edx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov ecx, ebp
sub ecx, dword [0x53b64c]
add eax, esi
add ecx, dword [eax]
push 0x515c08
mov dword [ebx + 0x250], ecx
call fcn.00404690
push eax
call fcn.0048ad20
mov edx, ebp
sub edx, dword [0x53b64c]
lea eax, [edi + eax*4]
add eax, esi
add esp, 0x40
add edx, dword [eax]
mov dword [ebx + 0x254], edx
push 0x515bf0
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov ecx, ebp
sub ecx, dword [0x53b64c]
add eax, esi
add ecx, dword [eax]
push 0x515bd4
mov dword [ebx + 0x258], ecx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov edx, ebp
sub edx, dword [0x53b64c]
add eax, esi
add edx, dword [eax]
push 0x515bc0
mov dword [ebx + 0x25c], edx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov ecx, ebp
sub ecx, dword [0x53b64c]
add eax, esi
add ecx, dword [eax]
push 0x515ba0
mov dword [ebx + 0x260], ecx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov edx, ebp
sub edx, dword [0x53b64c]
add eax, esi
add edx, dword [eax]
push 0x515b8c
mov dword [ebx + 0x264], edx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov ecx, ebp
sub ecx, dword [0x53b64c]
add eax, esi
add ecx, dword [eax]
push 0x515b78
mov dword [ebx + 0x268], ecx
call fcn.00404690
push eax
call fcn.0048ad20
lea eax, [edi + eax*4]
mov edx, ebp
sub edx, dword [0x53b64c]
add eax, esi
add edx, dword [eax]
push 0x515b68
mov dword [ebx + 0x26c], edx
call fcn.00404690
push eax
call fcn.0048ad20
sub ebp, dword [0x53b64c]
lea eax, [edi + eax*4]
add ebp, dword [eax + esi]
add eax, esi
add esp, 0x38
push esi
mov dword [ebx + 0x270], ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x32c
ret
mov ecx, dword [eax + edx + 1]
add ecx, eax
lea eax, [ecx + edx + 5]
test eax, eax
je 0x42a05a
xor ecx, ecx
lea ebx, [ebx]
cmp byte [ecx + eax], 0xe8
jne 0x42a374
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x23], dl
and dl, 0xf0
cmp dl, 0x50
je 0x42a38d
cmp byte [esp + 0x23], 0xce
je 0x42a38d
cmp byte [ecx + eax - 2], 0x8b
je 0x42a38d
inc ecx
cmp ecx, 0x30
jl 0x42a350
mov ecx, dword [esp + 0x14]
sub eax, esi
add eax, ebp
mov dword [ebx + 0x230], eax
jmp 0x42a05e
mov edx, dword [ecx + eax + 1]
add edx, ecx
lea ecx, [edx + eax + 5]
sub eax, esi
add eax, ebp
mov dword [ebx + 0x230], eax
jmp 0x42a05e