Function at 0x4213b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10094
call fcn.00492d40
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x18
mov dword [ebp - 0xc], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x4219e1
mov dword [ebp - 0x10], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x14], 1
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x15], 1
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call edx
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
mov ecx, eax
neg ecx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
and ecx, 3
lea eax, [ebp - 0x54]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
mov eax, str.xml_version1.0_encodingGB2312
nop
inc eax
cmp byte [eax], bl
jne 0x421460
sub eax, str.xml_version1.0_encodingGB2312
lea ebx, [eax + 1]
lea esi, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.00406720
mov edi, eax
test ebx, ebx
je 0x421490
mov ecx, str.xml_version1.0_encodingGB2312
sub ecx, edi
mov esi, ebx
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x421487
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov eax, ecx
neg eax
and eax, 3
add eax, ecx
lea ecx, [eax + 0x30]
cmp ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
jbe 0x4214f0
mov eax, dword [ebp - 0x54]
push 0x1000a
test eax, eax
je 0x4214ba
call eax
jmp 0x4214bf
call fcn.004928c4
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov ecx, eax
neg ecx
and ecx, 3
add ecx, eax
mov dword [ecx], edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
add eax, 0x1000a
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
add ecx, 4
mov eax, ecx
neg eax
and eax, 3
add esp, 4
add eax, ecx
xor edx, edx
lea ecx, [eax + 0x30]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
cmp eax, edx
je 0x421516
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 7
mov dword [eax + 0x18], edx
mov dword [eax + 0x20], edx
jmp 0x421518
xor eax, eax
cmp edi, edx
je 0x42152e
mov ecx, edi
cmp byte [edi], dl
je 0x421527
inc ecx
cmp byte [ecx], dl
jne 0x421522
sub ecx, edi
mov dword [eax], edi
mov dword [eax + 8], ecx
cmp eax, edx
jne 0x421565
lea esi, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.004066c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 4]
lea esi, [ebp - 0x14]
call fcn.00406b10
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
je 0x421581
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [ecx + 0x2c], eax
jmp 0x42158a
mov dword [eax + 0x28], edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [eax + 0x10], ecx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0xc]
mov esi, str.TNConfig
cmp dword [eax + 4], edx
je 0x4215ae
mov esi, str.BrowserConfig
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov eax, ecx
neg eax
and eax, 3
add eax, ecx
lea ecx, [eax + 0x30]
cmp ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
jbe 0x421610
mov eax, dword [ebp - 0x54]
push 0x1000a
cmp eax, edx
je 0x4215d8
call eax
jmp 0x4215dd
call fcn.004928c4
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov ecx, eax
neg ecx
and ecx, 3
add ecx, eax
mov dword [ecx], edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
add eax, 0x1000a
add ecx, 4
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov eax, ecx
neg eax
and eax, 3
add esp, 4
add eax, ecx
xor edx, edx
lea ecx, [eax + 0x30]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
cmp eax, edx
je 0x421634
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], edx
mov dword [eax + 0x20], edx
jmp 0x421636
xor eax, eax
mov dword [ebp - 4], eax
cmp esi, edx
je 0x421651
cmp byte [esi], 0
mov ecx, esi
je 0x42164a
inc ecx
cmp byte [ecx], 0
jne 0x421644
sub ecx, esi
mov dword [eax], esi
mov dword [eax + 8], ecx
cmp eax, edx
je 0x421532
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
je 0x421675
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
mov dword [ecx + 0x2c], eax
jmp 0x42167e
mov dword [eax + 0x28], edx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [eax + 0x10], ecx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
cmp ebx, eax
je 0x421730
lea ecx, [ecx]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax - 0xc]
mov edi, dword [ebx + 0xc]
mov edx, dword [edi - 0xc]
push ecx
push edx
push eax
push 1
lea esi, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.00405fa0
test eax, eax
je 0x4216e7
mov ecx, dword [ebp - 4]
xor edx, edx
cmp dword [ecx + 0x18], edx
je 0x4216d8
mov esi, dword [ecx + 0x1c]
mov dword [eax + 0x28], esi
mov esi, dword [ecx + 0x1c]
mov dword [esi + 0x2c], eax
jmp 0x4216de
mov dword [eax + 0x28], edx
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [eax + 0x10], ecx
mov dword [eax + 0x2c], edx
cmp byte [ebx + 0x15], 0
jne 0x421727
mov eax, dword [ebx + 8]
cmp byte [eax + 0x15], 0
jne 0x42170c
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x15], 0
jne 0x421727
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x15], 0
je 0x421700
jmp 0x421727
mov eax, dword [ebx + 4]
cmp byte [eax + 0x15], 0
jne 0x421725
cmp ebx, dword [eax + 8]
jne 0x421725
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x421715
mov ebx, eax
cmp ebx, dword [ebp - 0x10]
jne 0x4216a0
push 0
push 0
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call fcn.00408420
mov eax, dword [ebp - 0x3c]
mov edi, 0x10
add esp, 0x14
cmp dword [ebp - 0x28], edi
jae 0x42176d
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 4]
call fcn.004055e0
mov ebx, dword [ebp - 4]
call fcn.00402620
push eax
lea ecx, [ebp - 0x18]
call fcn.00405690
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00420d40
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, reloc.NETAPI32.dll_NetApiBufferFree
jne 0x42186e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4217de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4217fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421819
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x28], edi
jb 0x42182d
mov ecx, dword [ebp - 0x3c]
push ecx
call ebx
add esp, 4
lea esi, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
call fcn.004066c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 4]
lea esi, [ebp - 0x14]
call fcn.00406b10
mov edx, dword [ebp - 0x10]
push edx
call ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
jle 0x42188d
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00406630
mov edi, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebx + ebx]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x421943
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4218ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4218e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x3c]
call fcn.0040b8a0
lea esi, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.004066c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 4]
lea esi, [ebp - 0x14]
call fcn.00406b10
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421965
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421984
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x3c]
call fcn.0040b8a0
lea esi, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.004066c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 4]
lea esi, [ebp - 0x14]
call fcn.00406b10
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4aa228
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3