Function at 0x430cd0
Capabilities:
Access the windows event log

Disassembly:
mov edx, dword [0x475f80]
sub esp, 0x260
test edx, edx
jne 0x430cf1
push edx
push edx
push edx
call dword [0x45a440]
mov edx, eax
mov dword [0x475f80], edx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x270]
test esi, esi
push edi
je 0x430de6
cmp dword [esi], 0
jne 0x430de6
mov ebx, dword [esp + 0x280]
test ebx, ebx
jne 0x430d40
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x2c]
lea ebx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], str.SOCKS5_SDK
mov dword [esp + 0x280], ebx
push 0xffffffffffffffff
push edx
call dword [0x45a43c]
mov eax, dword [esp + 0x278]
cmp eax, 0xffffffff
jne 0x430d7e
cmp dword [esp + 0x27c], eax
jne 0x430d7e
lea eax, [esp + 0x27c]
lea ecx, [esp + 0x278]
push eax
push ecx
push ebx
call fcn.00430910
mov eax, dword [esp + 0x284]
add esp, 0xc
cmp dword [ebx], 3
jne 0x430dd9
test al, 4
je 0x430d8e
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x430dd9
test al, 2
je 0x430d99
mov eax, dword [ebx + 4]
test eax, eax
je 0x430dd9
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x430da7
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x430dd9
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x430db2
test eax, eax
jl 0x430dd9
push 0x33c
call fcn.0041e9d4
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x430df4
push str.Out_of_memory_allocating_log_handle._n
push 0x470b80
call fcn.0043ba21
add esp, 8
mov edx, dword [0x475f80]
push edx
call dword [0x45a434]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x260
ret
mov ecx, 0xcf
xor eax, eax
rep stosd dword es:[edi], eax
mov ebp, dword [esi]
mov dword [ebp], 3
mov eax, dword [esp + 0x278]
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x27c]
mov dword [ebp + 8], ecx
mov eax, dword [esp + 0x278]
test eax, eax
jle 0x4314d4
mov eax, dword [esp + 0x27c]
test eax, eax
jle 0x4314d4
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x430e44
mov ecx, 3
mov eax, dword [ebp + 4]
mov dword [ebp + 0x328], ecx
mov edx, dword [ebx + 0x1c]
lea esi, [ebp + 0x318]
shl edx, 0xa
test al, 4
mov dword [ebp + 0x324], edx
mov dword [ebp + 0x31c], 0
mov dword [esi], 0
jne 0x430e85
test al, 2
je 0x4313f2
cmp dword [ebp + 8], 5
jne 0x4313f2
mov edx, dword [ebx + 8]
test edx, edx
je 0x4313f2
cmp byte [edx], 0
je 0x4313f2
cmp ecx, 2
jne 0x4312f3
push 0
call fcn.0041d3ea
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4312e8
cmp byte [eax], 0
je 0x4312e8
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xf0
ja 0x4312e4
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
lea esi, [ebp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x68]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x68]
push ecx
call fcn.0043cd71
add esp, 4
test eax, eax
je 0x430f87
call fcn.00421424
cmp dword [eax], 0x11
je 0x430f87
lea edx, [esp + 0x68]
push edx
push str.cant_make_directory__s_n
push 0x470b80
call fcn.0043ba21
mov eax, dword [0x475f80]
add esp, 0xc
mov word [0x475f7c], 0
push eax
call dword [0x45a434]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x260
ret
mov ecx, dword [ebx + 0xc]
xor ebx, ebx
shl ecx, 0xa
mov dword [ebp + 0x320], ecx
mov ecx, dword [ebp + 8]
cmp ecx, 5
lea edx, [esp + 0x28]
sete bl
push edx
lea eax, [esp + 0x50]
inc ebx
push 0x1a
push eax
mov dword [esp + 0x24], ebx
call fcn.0042ffb0
mov edi, eax
mov eax, dword [0x475f84]
add esp, 0xc
mov dword [esp + 0x14], edi
test eax, eax
jne 0x4310dd
xor ecx, ecx
push 0x14
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
call fcn.0041e9d4
mov esi, eax
add esp, 4
test esi, esi
je 0x4313e4
push 1
push esi
call dword [0x45a010]
test eax, eax
jne 0x431025
push esi
call fcn.0041eb0e
mov eax, dword [0x475f80]
add esp, 4
mov word [0x475f7c], 0
push eax
call dword [0x45a434]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x260
ret
push 0
push 0
push 1
push esi
call dword [0x45a04c]
test eax, eax
jne 0x431063
push esi
call fcn.0041eb0e
add esp, 4
mov ecx, dword [0x475f80]
mov word [0x475f7c], 0
push ecx
call dword [0x45a434]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x260
ret
push str.socks5_log_mutex
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], esi
call dword [0x45a440]
test eax, eax
mov dword [0x475f84], eax
jne 0x4310d4
call dword [0x45a464]
push eax
push str.Createmutex_error__d_n
push 0x470b80
call fcn.0043ba21
push esi
call fcn.0041eb0e
mov eax, dword [0x475f80]
add esp, 0x10
mov word [0x475f7c], 0
push eax
call dword [0x45a434]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x260
ret
push esi
call fcn.0041eb0e
add esp, 4
push edi
call fcn.00431500
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x74]
push str._s_s
push edx
call fcn.0041f36f
mov eax, dword [0x475f84]
add esp, 0x14
push 0xffffffffffffffff
push eax
call dword [0x45a43c]
call fcn.00431520
lea ecx, [esp + 0x68]
mov dword [0x475f88], eax
push ecx
call fcn.0043cd71
add esp, 4
test eax, eax
je 0x431173
call fcn.00421424
cmp dword [eax], 0x11
je 0x431173
lea edx, [esp + 0x68]
push edx
push str.cant_make_directory__s_n
push 0x470b80
call fcn.0043ba21
mov eax, dword [0x475f84]
mov esi, dword [0x45a434]
add esp, 0xc
mov word [0x475f7c], 0
push eax
call esi
mov ecx, dword [0x475f80]
push ecx
call esi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x260
ret
call fcn.00431670
cmp edi, eax
je 0x4311dd
push edi
mov dword [0x475f88], 0
call fcn.00431710
mov edx, dword [0x475f88]
push edx
call fcn.004315c0
add esp, 8
test ebx, ebx
jle 0x4311dd
mov edi, 0x4711b8
xor esi, esi
mov eax, dword [edi]
push esi
lea ecx, [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0x178]
push str._s_s._1d
push edx
call fcn.0041f36f
lea eax, [esp + 0x180]
push eax
call fcn.0043cd66
add esp, 0x18
inc esi
cmp esi, 0xa
jl 0x4311a6
add edi, 4
dec ebx
jne 0x4311a4
mov ecx, dword [0x475f84]
push ecx
call dword [0x45a434]
mov eax, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
jle 0x4312ab
mov dword [esp + 0x10], 0x4711b8
lea edi, [ebp + 0x318]
lea esi, [ebp + 0xc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x68]
mov eax, dword [edx]
push eax
push ecx
push str._s_s
push esi
call fcn.0041f36f
mov edx, dword [0x475f88]
push edx
push esi
push str._s._1d
push esi
call fcn.0041f36f
push 0x4713e4
push esi
call fcn.0043ba8e
add esp, 0x28
mov dword [edi], eax
test eax, eax
je 0x4312c1
push 2
push 0
push eax
call fcn.0043b968
mov eax, dword [edi]
push eax
call fcn.0043b7e5
mov edx, dword [ebp + 0x320]
add esp, 0x10
sub eax, edx
test eax, eax
jle 0x43128a
mov ecx, dword [edi]
push ecx
call fcn.0042b41d
push 0x471238
push esi
mov dword [edi], 0
call fcn.0043ba8e
add esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x4312c1
mov eax, dword [esp + 0x10]
inc ebx
add eax, 4
add edi, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add esi, 0x104
cmp ebx, eax
jl 0x431209
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x280]
mov dword [ebp + 0x338], edx
jmp 0x4313f2
mov edx, ebx
shl edx, 6
add edx, ebx
lea eax, [ebp + edx*4 + 0xc]
push eax
push str.cant_open_file__s_for_logging_n
push 0x470b80
call fcn.0043ba21
add esp, 0xc
jmp 0x43103f
mov eax, dword [esp + 0x10]
push eax
push str.file_name_error__s_n
jmp 0x430f57
test edx, edx
je 0x4313d1
cmp byte [edx], 0
je 0x4313d1
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xf0
ja 0x4313d1
lea edi, [ebp + 0xc]
push 0x104
push edi
push edx
call dword [0x45a280]
mov ecx, dword [ebx + 0xc]
push 0x4713e4
shl ecx, 0xa
push edi
mov dword [ebp + 0x320], ecx
call fcn.0043ba8e
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x431357
push edi
push str.cant_open_file__s_for_logging_n
jmp 0x4313d7
push 2
push 0
push eax
call fcn.0043b968
mov ecx, dword [esi]
mov eax, dword [ebp + 0x320]
push ecx
mov dword [esp + 0x24], eax
call fcn.0043b7e5
mov edx, eax
mov eax, dword [esp + 0x24]
sub edx, eax
add esp, 0x10
test edx, edx
jle 0x4313f2
cmp dword [ebp + 0x328], 1
je 0x4313f2
push eax
push edi
push str.Log_file__s_already_exceeds_maximum_size__d_bytes_n
push 0x470b80
call fcn.0043ba21
mov word [0x475f7c], 0
mov eax, dword [esi]
push eax
call fcn.0042b41d
add esp, 0x14
mov dword [esi], 0
mov ecx, dword [0x475f80]
push ecx
call dword [0x45a434]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x260
ret
push edx
push str.file_name_error__s_n
push 0x470b80
call fcn.0043ba21
add esp, 0xc
mov word [0x475f7c], 0
jmp 0x430dd9
test byte [ebp + 4], 2
je 0x43141a
mov eax, dword [ebx + 4]
test eax, eax
je 0x43141a
push eax
push 0
call dword [0x45a048]
test eax, eax
mov dword [ebp + 0x32c], eax
jne 0x43141a
mov eax, dword [ebp + 4]
and al, 0xfd
mov dword [ebp + 4], eax
mov eax, dword [ebx + 0x14]
mov edi, dword [0x45a044]
mov esi, dword [0x45a27c]
test eax, eax
je 0x43146e
cmp byte [eax], 0
je 0x43146e
push 2
push 0
push eax
call esi
test eax, eax
mov dword [ebp + 0x330], eax
jne 0x43146e
mov eax, dword [ebp + 0x32c]
test eax, eax
je 0x43146e
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 1
push 0
push 0x40000001
push 0
push 1
push eax
mov dword [esp + 0x38], str.Failed_to_load_resource_library.
call edi
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x4314b2
cmp byte [ebx], 0
je 0x4314b2
push 2
push 0
push ebx
call esi
test eax, eax
mov dword [ebp + 0x334], eax
jne 0x4314b2
mov ebp, dword [ebp + 0x32c]
test ebp, ebp
je 0x4314b2
lea edx, [esp + 0x14]
push eax
push edx
push eax
push 1
push eax
push 0x40000001
push eax
push 1
push ebp
mov dword [esp + 0x38], str.Failed_to_load_error_library.
call edi
mov eax, dword [0x475f80]
mov word [0x475f7c], 1
push eax
call dword [0x45a434]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret
mov ecx, dword [0x475f80]
mov word [0x475f7c], 0
push ecx
call dword [0x45a434]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x260
ret