Function at 0x46c530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47309f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx]
cmp ecx, edx
je 0x46c7f8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ecx + 0x10], esi
je 0x46c5ba
cmp byte [ecx + 0x15], bl
jne 0x46c5a4
mov eax, dword [ecx + 8]
cmp byte [eax + 0x15], bl
jne 0x46c58b
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], bl
jne 0x46c5a4
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], bl
je 0x46c580
jmp 0x46c5a4
mov eax, dword [ecx + 4]
cmp byte [eax + 0x15], bl
jne 0x46c5a2
cmp ecx, dword [eax + 8]
jne 0x46c5a2
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], bl
je 0x46c593
mov ecx, eax
cmp ecx, edx
jne 0x46c565
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ecx + 0xc]
cmp esi, 0xffffffff
je 0x46c7f6
push edi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], vtable.PBUIWebInterface::WEB_MSG_RESP.0
call fcn.00441cc0
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 1
or eax, 1
or eax, 2
mov dword [ebp - 0x6c], esi
lea esi, [ebp - 0x94]
mov dword [ebp - 0x70], 0x19
mov dword [ebp - 0x30], eax
call fcn.00403530
mov esi, eax
lea edi, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00401750
mov edi, eax
or dword [edi + 0x18], 1
cmp dword [edi + 8], 0x487000
jne 0x46c66b
push 0x1c
call fcn.00411e4b
add esp, 4
cmp eax, ebx
je 0x46c666
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
mov byte [eax], bl
jmp 0x46c668
xor eax, eax
mov dword [edi + 8], eax
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
push ebx
push esi
call fcn.00401c20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x80], 0x10
jb 0x46c690
mov eax, dword [ebp - 0x94]
push eax
call fcn.0041149f
add esp, 4
mov edi, dword [ebp + 0x10]
lea esi, [ebp - 0x94]
call fcn.00403530
mov esi, eax
lea edi, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00401750
mov edi, eax
or dword [edi + 0x18], 2
cmp dword [edi + 0xc], 0x487000
jne 0x46c6dc
push 0x1c
call fcn.00411e4b
add esp, 4
cmp eax, ebx
je 0x46c6d7
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
mov byte [eax], bl
jmp 0x46c6d9
xor eax, eax
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0xc]
push 0xffffffffffffffff
push ebx
push esi
call fcn.00401c20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x80], 0x10
jb 0x46c701
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.0041149f
add esp, 4
mov edi, dword [ebp + 0x14]
lea esi, [ebp - 0x94]
call fcn.00403530
mov esi, eax
lea edi, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.00401750
mov edi, eax
or dword [edi + 0x18], 4
cmp dword [edi + 0x10], 0x487000
jne 0x46c74d
push 0x1c
call fcn.00411e4b
add esp, 4
cmp eax, ebx
je 0x46c748
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
mov byte [eax], bl
jmp 0x46c74a
xor eax, eax
mov dword [edi + 0x10], eax
mov ecx, dword [edi + 0x10]
push 0xffffffffffffffff
push ebx
push esi
call fcn.00401c20
mov esi, 0x10
mov byte [ebp - 4], 1
pop edi
cmp dword [ebp - 0x80], esi
jb 0x46c777
mov edx, dword [ebp - 0x94]
push edx
call fcn.0041149f
add esp, 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040eab0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x46c78e
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push ebx
lea ecx, [ebp + 8]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
push ecx
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x18], esi
jb 0x46c7b9
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041149f
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x78], vtable.PBUIWebInterface::WEB_MSG_RESP.0
lea esi, [ebp - 0x78]
mov dword [ebp - 4], 6
call fcn.0040c4c0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
call fcn.00442070
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041eee0
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10