Function at 0x450de0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5376c4
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1118
call fcn.00502a70
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10e0], eax
mov esi, dword [eax + 0x14]
cmp esi, dword [eax + 0x18]
je 0x451563
nop dword [eax]
mov edi, dword [esi]
test edi, edi
je 0x451557
push 0x400
lea eax, [ebp - 0x828]
mov dword [ebp - 0x10e8], 0x20019
push 0
push eax
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x200
push 0
push eax
call fcn.00504c70
mov eax, dword [ebp - 0x10e0]
add esp, 0xc
cmp dword [eax + 0x10], 0
je 0x450f0b
mov eax, dword [edi + 0x3a20]
cmp eax, 1
jne 0x450ea3
mov dword [ebp - 0x10e4], accept
jmp 0x450ee9
cmp eax, 2
jne 0x450eb4
mov dword [ebp - 0x10e4], reloc.WS2_32.dll_accept
jmp 0x450ee9
cmp eax, 3
jne 0x450ec5
mov dword [ebp - 0x10e4], reloc.WS2_32.dll_bind
jmp 0x450ee9
cmp eax, 4
jne 0x450ed6
mov dword [ebp - 0x10e4], reloc.WS2_32.dll_closesocket
jmp 0x450ee9
cmp eax, 5
jne 0x451551
mov dword [ebp - 0x10e4], reloc.WS2_32.dll_getpeername
cmp byte [edi + 0x3e24], 0
mov eax, 0x20119
mov ecx, 0x20019
cmove eax, ecx
mov dword [ebp - 0x10e8], eax
lea eax, [edi + 0x3a24]
jmp 0x450f6e
mov eax, dword [edi + 0x361c]
cmp eax, 1
jne 0x450f22
mov dword [ebp - 0x10e4], accept
jmp 0x450f68
cmp eax, 2
jne 0x450f33
mov dword [ebp - 0x10e4], reloc.WS2_32.dll_accept
jmp 0x450f68
cmp eax, 3
jne 0x450f44
mov dword [ebp - 0x10e4], reloc.WS2_32.dll_bind
jmp 0x450f68
cmp eax, 4
jne 0x450f55
mov dword [ebp - 0x10e4], reloc.WS2_32.dll_closesocket
jmp 0x450f68
cmp eax, 5
jne 0x451551
mov dword [ebp - 0x10e4], reloc.WS2_32.dll_getpeername
lea eax, [edi + 0x3620]
test eax, eax
je 0x451551
cmp byte [eax], 0
je 0x451551
push eax
lea eax, [ebp - 0x828]
push 0x400
push eax
call fcn.0050d9da
lea eax, [edi + 0x3e25]
add esp, 0xc
test eax, eax
je 0x451551
cmp byte [eax], 0
je 0x451551
push eax
lea eax, [ebp - 0x428]
push 0x200
push eax
call fcn.0050d9da
add esp, 0xc
mov dword [ebp - 0x10dc], 0
lea eax, [ebp - 0x10dc]
push eax
push dword [ebp - 0x10e8]
lea eax, [ebp - 0x828]
push ecx
push eax
push dword [ebp - 0x10e4]
push ecx
call fcn.00415220
add esp, 4
mov ecx, eax
call fcn.00459240
test eax, eax
jne 0x45103f
push eax
push eax
push eax
push ecx
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x10dc]
call fcn.00415220
mov ecx, eax
call fcn.004592c0
test eax, eax
jne 0x45103f
mov dword [edi + 0x3084], 3
push dword [ebp - 0x10dc]
push ecx
call fcn.00415220
add esp, 4
mov ecx, eax
call fcn.00459340
jmp 0x451551
mov eax, dword [ebp - 0x10dc]
test eax, eax
je 0x45105a
push eax
push ecx
call fcn.00415220
add esp, 4
mov ecx, eax
call fcn.00459340
cmp byte [edi + 0x4249], 0
je 0x4513c2
push 0x105
lea eax, [ebp - 0x228]
mov dword [ebp - 0x10e8], 0
push 0
push eax
mov dword [ebp - 0x10e4], 0
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4512b3
lea ecx, [edi + 0x408]
test ecx, ecx
je 0x4512b3
cmp byte [ecx], 0
je 0x4512b3
lea eax, [edi + 0xc08]
test eax, eax
je 0x4512b3
cmp byte [eax], 0
je 0x4512b3
mov dword [ebp - method.CCURLWrapper.virtual_0], vtable.CCURLWrapper.0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x228]
push eax
push ecx
call fcn.0044a830
test eax, eax
jne 0x4512a2
push 0x105
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00504c70
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x120]
push 0x105
push eax
call fcn.0050931c
add esp, 0xc
lea eax, [edi + 0xc08]
push eax
lea eax, [ebp - 0x120]
push 0x105
push eax
call fcn.0050931c
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push ecx
call fcn.00407550
add esp, 4
mov ecx, eax
call fcn.0045aee0
test eax, eax
je 0x4512a2
lea eax, [ebp - 0x120]
mov dword [ebp - 0x10e8], 1
push eax
push ecx
call fcn.00407550
add esp, 4
mov ecx, eax
call fcn.0045b000
lea eax, [edi + 0x242c]
test eax, eax
je 0x4511de
cmp byte [eax], 0
je 0x4511de
push 0x5614d8
lea eax, [ebp - 0x120]
push 0x105
push eax
call fcn.0050931c
add esp, 0xc
lea eax, [edi + 0x242c]
push eax
lea eax, [ebp - 0x120]
push 0x105
push eax
call fcn.0050931c
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x10b8], 0x44
mov word [ebp - 0x1076], ax
xorps xmm0, xmm0
mov word [ebp - 0x1088], ax
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x10b8]
movlpd qword [ebp - 0x10b4], xmm0
push eax
sub esp, 0xc
movlpd qword [ebp - 0x10ac], xmm0
lea eax, [ebp - 0x120]
movlpd qword [ebp - 0x10a4], xmm0
movlpd qword [ebp - 0x109c], xmm0
movlpd qword [ebp - 0x1094], xmm0
push 0
sub esp, 8
movlpd qword [ebp - 0x1086], xmm0
movlpd qword [ebp - 0x107e], xmm0
mov dword [ebp - 0x108c], 0x101
movups xmmword [ebp - 0x1068], xmm0
push eax
push ecx
call fcn.00412ea0
mov ecx, eax
call fcn.0045a460
test eax, eax
je 0x4512a2
push 0
push dword [ebp - 0x1068]
mov dword [ebp - 0x10e4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1068]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1064]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CCURLWrapper.virtual_0], vtable.CCURLWrapper.0
xorps xmm0, xmm0
lea ecx, [ebp - 0x1058]
push 0
movups xmmword [ebp - 0x1058], xmm0
movq qword [ebp - 0x1048], xmm0
call fcn.0045dba0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1108]
push dword [edi]
call fcn.0045dca0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1108]
push eax
push 0x56318c
lea ecx, [ebp - 0x1058]
call fcn.0045f2a0
mov ecx, eax
call fcn.0045e2e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1108]
call fcn.0045e1b0
push dword [ebp - 0x10e8]
lea ecx, [ebp - 0x10d0]
call fcn.0045dca0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10d0]
push eax
push 0x5631c4
lea ecx, [ebp - 0x1058]
call fcn.0045f2a0
mov ecx, eax
call fcn.0045e2e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10d0]
call fcn.0045e1b0
push dword [ebp - 0x10e4]
lea ecx, [ebp - 0x1120]
call fcn.0045dca0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1120]
push eax
push 0x5631f4
lea ecx, [ebp - 0x1058]
call fcn.0045f2a0
mov ecx, eax
call fcn.0045e2e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1120]
call fcn.0045e1b0
mov ecx, dword [ebp - 0x10e0]
lea eax, [ebp - 0x1058]
push eax
lea ecx, [ecx + 0x28]
call fcn.0045f330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1058]
call fcn.0045e1b0
cmp byte [edi + 0x3619], 0
je 0x451551
push 0x560af8
lea eax, [edi + 0x808]
push 0
push eax
push ecx
call fcn.00407550
add esp, 4
mov ecx, eax
call fcn.0045af90
test eax, eax
je 0x451551
push 0x800
lea eax, [ebp - 0x1028]
push 0
push eax
call fcn.00504c70
add esp, 0xc
lea eax, [edi + 0x1008]
push eax
lea eax, [ebp - 0x1028]
push 0x800
push eax
call fcn.0050d9da
add esp, 0xc
lea eax, [edi + 0x808]
push eax
lea eax, [ebp - 0x1028]
push 0x800
push eax
call fcn.0050931c
add esp, 0xc
lea eax, [ebp - 0x1028]
push eax
push ecx
call fcn.00407550
add esp, 4
mov ecx, eax
call fcn.0045aee0
test eax, eax
je 0x451551
add edi, 0x242c
cmp byte [edi], 0
je 0x451499
push 0x5614d8
lea eax, [ebp - 0x1028]
push 0x800
push eax
call fcn.0050931c
add esp, 0xc
lea eax, [ebp - 0x1028]
push edi
push 0x800
push eax
call fcn.0050931c
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x10b8], 0x44
mov word [ebp - 0x1076], ax
xorps xmm0, xmm0
mov word [ebp - 0x1088], ax
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0x10b8]
movlpd qword [ebp - 0x10b4], xmm0
push eax
sub esp, 0xc
movlpd qword [ebp - 0x10ac], xmm0
lea eax, [ebp - 0x1028]
movlpd qword [ebp - 0x10a4], xmm0
movlpd qword [ebp - 0x109c], xmm0
movlpd qword [ebp - 0x1094], xmm0
push 0
sub esp, 8
movlpd qword [ebp - 0x1086], xmm0
movlpd qword [ebp - 0x107e], xmm0
mov dword [ebp - 0x108c], 0x101
movups xmmword [ebp - 0x1038], xmm0
push eax
push ecx
call fcn.00412ea0
mov ecx, eax
call fcn.0045a460
test eax, eax
je 0x451551
push 0
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1038]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1034]
call edi
mov eax, dword [ebp - 0x10e0]
add esi, 4
cmp esi, dword [eax + 0x18]
jne 0x450e40
lea esi, [eax + 0x28]
mov ecx, esi
call fcn.0045f810
test al, al
jne 0x45180a
xorps xmm0, xmm0
lea ecx, [ebp - 0x1058]
push 0
movups xmmword [ebp - 0x1058], xmm0
movq qword [ebp - 0x1048], xmm0
call fcn.0045dba0
mov dword [ebp - 4], 5
call fcn.00419000
add eax, 0x74
cmp dword [eax + 0x14], 0x10
jb 0x4515ab
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1120]
call fcn.0045dd90
mov byte [ebp - 4], 6
lea eax, [ebp - 0x1120]
push eax
push 0x5606b8
lea ecx, [ebp - 0x1058]
call fcn.0045f2a0
mov ecx, eax
call fcn.0045e2e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1120]
call fcn.0045e1b0
call fcn.00419000
lea ecx, [ebp - 0x1120]
push dword [eax + 4]
call fcn.0045dca0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1120]
push eax
push 0x560804
lea ecx, [ebp - 0x1058]
call fcn.0045f2a0
mov ecx, eax
call fcn.0045e2e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1120]
call fcn.0045e1b0
push esi
push str.bench
lea ecx, [ebp - 0x1058]
call fcn.0045f2a0
mov ecx, eax
call fcn.0045e2e0
lea ecx, [ebp - 0x10d8]
call fcn.0046e690
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x1108]
push eax
lea ecx, [ebp - 0x10d8]
call fcn.0046e6f0
mov byte [ebp - 4], 9
mov edx, 0x563208
push eax
lea ecx, [ebp - 0x1070]
call fcn.0041e3d0
add esp, 4
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x10f4]
cmp edx, 0x10
jb 0x4516c2
mov ecx, dword [ebp - 0x1108]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4516b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451828
push edx
push ecx
call fcn.00502404
add esp, 8
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x10f8], 0
mov dword [ebp - 0x10f4], 0xf
mov byte [ebp - 0x1108], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
mov byte [ebp - 4], 0xc
call fcn.00419000
cmp dword [eax + 0x58], 8
lea ecx, [eax + 0x44]
jb 0x451720
mov ecx, dword [ecx]
lea eax, [ebp - 0x1040]
mov edx, 0x5631f8
push eax
lea eax, [ebp - 0x1070]
push eax
call fcn.004735c0
add esp, 8
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x102c]
cmp edx, 0x10
jb 0x451779
mov ecx, dword [ebp - 0x1040]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45176f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45182d
push edx
push ecx
call fcn.00502404
add esp, 8
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x105c]
cmp edx, 0x10
jb 0x4517ce
mov ecx, dword [ebp - 0x1070]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4517c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451832
push edx
push ecx
call fcn.00502404
add esp, 8
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x105c], 0xf
mov byte [ebp - 0x1070], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10d8]
call fcn.00419600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1058]
call fcn.0045e1b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00509bb8
call fcn.00509bb8
call fcn.00509bb8
int3