Function at 0x499e50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x5a4
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x5a0], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push esi
mov ebp, ecx
xor esi, esi
cmp byte [ebp + 0x1c0], 0
je 0x499e98
mov eax, dword [ebp + 0x180]
mov eax, dword [eax]
push esi
push esi
push 0x421
push eax
call ebx
cmp eax, 1
je 0x499e98
xor eax, eax
jmp 0x49a305
push edi
push 0x4bfa34
call fcn.00436dc0
add esp, 4
push eax
lea ecx, [esp + 0x40]
call fcn.0040cf30
mov edi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.00491ad0
test al, al
jne 0x499efa
lea ecx, [esp + 0x18]
call fcn.00491e10
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499ef3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x49a304
mov edx, dword [0x514540]
mov eax, dword [edx + 0xc]
mov ecx, 0x514540
mov dword [esp + 0x60], vtable.IFinder.0
call eax
add eax, 0x10
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], vtable.CRegexFinder.0
call fcn.00415350
lea ecx, [esp + 0x6c]
call fcn.00410f10
cmp byte [ebp + 0x195], 0
je 0x499f6a
cmp byte [ebp + 0x194], 0
mov eax, 2
jne 0x499f4f
mov eax, 0xa
mov ecx, dword [ebp + 0x190]
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.00414ea0
lea edi, [esp + 0x60]
mov dword [esp + 0x28], edi
jmp 0x499fb3
cmp byte [ebp + 0x19b], 0
mov eax, dword [ebp + 0x190]
mov edx, dword [eax - 0xc]
mov dword [esp + 0x10], edx
je 0x499f93
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00495390
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov edi, dword [ebp + 0x24]
push esi
movzx esi, byte [ebp + 0x194]
lea ecx, [ebp + 0x24]
push esi
push edx
mov edx, dword [edi + 4]
push eax
mov dword [esp + 0x38], ecx
call edx
mov edi, dword [esp + 0x28]
xor esi, esi
mov eax, dword [ebp + 0x180]
mov eax, dword [eax]
push esi
push esi
push 0x408
push eax
call ebx
cmp byte [ebp + 0x1c0], 0
je 0x499fea
mov eax, dword [ebp + 0x180]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x4c]
push edx
push 0x422
push ecx
call ebx
jmp 0x499ffe
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x1fffffff
cmp byte [ebp + 0x195], 0
jne 0x49a01f
cmp byte [ebp + 0x19b], 0
jne 0x49a01f
mov eax, dword [ebp + 0x1c8]
mov edx, dword [eax - 0xc]
mov dword [esp + 0x38], edx
jmp 0x49a037
mov eax, dword [ebp + 0x1c8]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.00495390
add esp, 0xc
push 2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [ebp + 0x180]
lea edx, [esp + 0x54]
push edx
call fcn.00491d30
mov ebx, eax
mov eax, dword [esp + 0x2c]
lea eax, [ebx + eax*2]
mov dword [esp + 0x10], esi
mov esi, ebx
mov dword [esp + 0x30], eax
cmp ebx, eax
jae 0x49a1cb
jmp 0x49a07c
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov edx, dword [edi]
mov edx, dword [edx + 8]
sub eax, esi
lea ecx, [esp + 0x14]
push ecx
sar eax, 1
push eax
mov eax, dword [esp + 0x34]
push esi
push eax
push ebx
mov ecx, edi
call edx
mov edi, eax
test edi, edi
je 0x49a1b4
cmp byte [ebp + 0x195], 0
jne 0x49a0ed
cmp byte [ebp + 0x196], 0
je 0x49a0ed
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
push edi
call fcn.00436fa0
add esp, 0x10
test al, al
jne 0x49a0ed
mov edx, edi
sub edx, esi
sar edx, 1
add edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
add edx, edx
push edx
push esi
call fcn.00491b30
mov eax, dword [esp + 0x14]
lea esi, [edi + eax*2]
jmp 0x49a1a8
inc dword [esp + 0x10]
mov eax, edi
sub eax, esi
sar eax, 1
je 0x49a109
lea ecx, [eax + eax]
push ecx
push esi
lea ecx, [esp + 0x20]
call fcn.00491b30
mov esi, edi
cmp byte [ebp + 0x195], 0
je 0x49a166
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0
push 0
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push edi
lea ecx, [esp + 0x90]
mov dword [esp + 0x48], 0
call fcn.00498020
mov edi, eax
test edi, edi
je 0x49a188
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax]
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00491b30
push edi
call fcn.0049e944
add esp, 4
jmp 0x49a188
mov edx, dword [ebp + 0x1c8]
cmp dword [edx - 0xc], 0
je 0x49a188
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea ecx, [eax + eax]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00491b30
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x49a1a5
push 2
push esi
lea ecx, [esp + 0x20]
call fcn.00491b30
mov eax, 1
mov dword [esp + 0x14], eax
lea esi, [esi + eax*2]
cmp esi, dword [esp + 0x30]
jb 0x49a074
jmp 0x49a1cb
mov eax, dword [esp + 0x30]
sub eax, esi
sar eax, 1
je 0x49a1cb
add eax, eax
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00491b30
push ebx
call fcn.0049f207
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x49a202
mov edx, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x28]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49a1fe
call fcn.00404800
mov dword [esp + 0x1c], edi
cmp esi, edi
je 0x49a211
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x184]
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
push ecx
push edi
add eax, 8
mov dword [esp + 0x58], 0x4b0
mov dword [esp + 0x60], 1
mov edx, dword [eax]
push 0x8b1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x49a2aa
mov ecx, dword [ebp + 0x184]
call fcn.00481510
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push 4
mov ecx, esi
call edx
mov ecx, dword [ebp + 0x1c8]
mov edx, dword [ebp + 0x190]
push ecx
xor eax, eax
push edx
mov word [esp + 0x1a8], ax
lea eax, [esp + 0x1a8]
push 0x3ae0
push eax
call fcn.0042f7e0
mov edx, dword [esi]
mov eax, dword [edx]
add esp, 0x10
lea ecx, [esp + 0x1a0]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x6c]
call fcn.00415580
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov dword [esp + 0x60], vtable.IFinder.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a2db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
call fcn.00491e10
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a300
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
pop edi
mov ecx, dword [esp + 0x5ac]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x5a4
ret 0x10