Function at 0x547bad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fa12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x364
push edi
mov dword [ebp - 0x30c], ecx
push 0xffffffffffffffff
push 0x4be
push 0x6b9328
push 0
mov ecx, dword [ebp - 0x30c]
call fcn.004b27d6
mov eax, dword [eax + 0x5c]
push eax
call fcn.004f74b0
add esp, 0x14
test eax, eax
je 0x547c02
xor eax, eax
jmp 0x548465
mov ecx, dword [ebp - 0x30c]
call fcn.004b0d11
and eax, 0xff
test eax, eax
je 0x547c1d
xor eax, eax
jmp 0x548465
push 0
mov ecx, dword [ebp + 8]
call fcn.004f5420
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.00535910
cmp dword [ebp + 0xc], 0
je 0x547c4f
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004f5420
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00535910
mov ecx, dword [ebp - 0x30c]
call fcn.00534460
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x18]
call fcn.004ba340
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], 0
lea edx, [ebp - 0x50]
push edx
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004f1f80
mov eax, dword [eax]
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x310]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x310]
push eax
call dword [edx + 0xa8]
mov ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.http:__
lea ecx, [ebp - 0x29c]
call fcn.00499550
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x318], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x318]
call fcn.004e9a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call fcn.004995e0
push 0x6b9378
lea ecx, [ebp - 0x3c]
call fcn.004b9670
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30c]
call fcn.004b27d6
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
jne 0x547d97
push 0x1c
call fcn.00588c18
add esp, 4
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2a4], 0
je 0x547d6b
mov eax, dword [ebp - 0x30c]
push eax
mov ecx, dword [ebp - 0x2a4]
call fcn.004fa060
mov dword [ebp - 0x31c], eax
jmp 0x547d75
mov dword [ebp - 0x31c], 0
mov ecx, dword [ebp - 0x31c]
mov dword [ebp - 0x2a0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0x44], ecx
mov dword [ebp - 0x44], 0
jmp 0x547da9
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x4c]
jge 0x548436
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004f1f80
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x30c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x30c]
call dword [edx + 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x547de4
jmp 0x547da0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
call dword [edx + 0x24]
lea ecx, [ebp - 0x68]
call fcn.004b9500
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.00540f00
mov byte [ebp - 4], 6
mov dword [ebp - 0x74], 0
jmp 0x547e2c
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
cmp edx, dword [ebp - 0x70]
jge 0x54840d
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x68]
call fcn.004b95d0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x2a8], edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x2b4]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2b0]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x2ac]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x2a8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x2c0], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x2bc], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2b8], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x2c4]
mov dword [ecx], edx
mov eax, dword [ebp - 0x2c0]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2bc]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x2b8]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
call dword [edx + 0x2c]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x547efb
cmp dword [ebp - 0x24], 0
jne 0x547f00
jmp 0x547e23
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004bbd80
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x40], 0
jl 0x547f28
cmp dword [ebp - 0x20], 0
jne 0x547f2d
jmp 0x547e23
push ecx
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push 0x6b9380
call fcn.004b9400
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x30c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30c]
call dword [eax + 0x20]
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x324]
mov dword [ebp - 0x328], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x328]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00499600
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2cc]
call fcn.004995e0
push str.http
push 4
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004bb210
mov dword [ebp - 0x32c], eax
mov ecx, dword [ebp - 0x32c]
mov dword [ebp - 0x330], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x330]
call fcn.004b9da0
mov byte [ebp - 0x2d0], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d4]
call fcn.004995e0
mov edx, dword [ebp - 0x2d0]
and edx, 0xff
test edx, edx
je 0x54811e
push 0x6b9394
push 1
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004bb210
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x334]
mov dword [ebp - 0x338], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x338]
call fcn.004b9da0
mov byte [ebp - 0x2d8], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2dc]
call fcn.004995e0
mov edx, dword [ebp - 0x2d8]
and edx, 0xff
test edx, edx
je 0x5480d7
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x2e4]
push ecx
push 0
push 0x6b9398
lea ecx, [ebp - 0x2e0]
call fcn.00499550
mov dword [ebp - 0x33c], eax
mov edx, dword [ebp - 0x33c]
mov dword [ebp - 0x340], edx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x340]
call fcn.004e98c0
mov dword [ebp - 0x344], eax
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x348], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x348]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00499600
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2e4]
call fcn.004995e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2e0]
call fcn.004995e0
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004e98c0
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x350], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x350]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00499600
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2e8]
call fcn.004995e0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x6c]
call fcn.004d1c90
mov dword [ebp - 0x2ec], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2ec]
push eax
mov ecx, dword [ebp + 8]
call fcn.00535930
cmp dword [ebp + 0xc], 0
je 0x5483fc
mov dword [ebp - 0x280], 0
mov word [ebp - 0x27c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x27a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ecx
mov ecx, esp
mov dword [ebp - 0x2f0], esp
lea edx, [ebp - 0x6c]
push edx
call fcn.00499580
mov dword [ebp - 0x354], eax
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x30c]
call fcn.00542627
mov dword [ebp - 0x358], eax
mov byte [ebp - 4], 0xd
push 0x6f084c
lea ecx, [ebp - 0x284]
call fcn.004b9d60
and eax, 0xff
test eax, eax
je 0x5483c7
lea ecx, [ebp - 0x27c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x27c]
push edx
call fcn.00541bb8
add esp, 4
mov dword [ebp - 0x280], eax
lea ecx, [ebp - 0x288]
call fcn.00540f00
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00526cc0
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0049eca0
push eax
call fcn.0053df20
add esp, 0xc
mov edx, dword [ebp - 0x280]
push edx
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x2f8]
push edx
push 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00499550
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
mov dword [ebp - 0x360], ecx
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x360]
call fcn.004e98c0
mov dword [ebp - 0x364], eax
mov edx, dword [ebp - 0x364]
mov dword [ebp - 0x368], edx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x368]
call fcn.004e9a80
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp - 0x36c]
mov dword [ebp - 0x370], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x370]
push ecx
lea ecx, [ebp - 0x284]
call fcn.00499600
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2fc]
call fcn.004995e0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2f8]
call fcn.004995e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2f4]
call fcn.004995e0
lea ecx, [ebp - 0x284]
call fcn.0049eca0
push eax
call fcn.00541b40
add esp, 4
test eax, eax
jne 0x5483a8
mov dword [ebp - 0x28c], 0
push 0
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.00531a89
mov dword [ebp - 0x290], eax
lea ecx, [ebp - 0x298]
call fcn.0049e2c0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x290], 0
je 0x548373
push 0xffffffffffffffff
push 4
lea ecx, [ebp - 0x284]
call fcn.0049eca0
push eax
lea ecx, [ebp - 0x298]
call fcn.0049e310
test eax, eax
je 0x548373
mov ecx, dword [ebp - 0x28c]
push ecx
mov edx, dword [ebp - 0x290]
push edx
lea ecx, [ebp - 0x298]
call fcn.0049e4c0
cmp dword [ebp - 0x290], 0
je 0x548397
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x300]
push ecx
call fcn.00588c41
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x298]
call fcn.0049e2f0
jmp 0x5483b8
push 0x6f0850
lea ecx, [ebp - 0x284]
call fcn.004b9d00
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x288]
call fcn.004995e0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x284]
call fcn.004d1c90
mov dword [ebp - 0x304], eax
push 0xffffffffffffffff
lea edx, [ebp - 0x304]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00535930
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x284]
call fcn.004995e0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x20]
push edx
call dword [ecx + 8]
jmp 0x547e23
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 8]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.004995e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.004b9270
jmp 0x547da0
mov ecx, dword [ebp + 8]
call fcn.004ba340
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.004b9270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004995e0
mov eax, dword [ebp - 0x308]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8