Function at 0x4bf220
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585a14
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5f8310]
xor eax, ebp
mov dword [ebp - 0x80], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x194]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x190]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 3
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x18], 0
push 0x104
push 0
lea eax, [ebp - 0x18c]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x18c]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
sub eax, 1
mov dword [ebp - 0x19c], eax
jmp 0x4bf2e3
mov eax, dword [ebp - 0x19c]
sub eax, 1
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jle 0x4bf313
mov ecx, dword [ebp - 0x19c]
movsx edx, byte [ebp + ecx - 0x18c]
cmp edx, 0x5c
jne 0x4bf303
jmp 0x4bf313
mov eax, dword [ebp - 0x19c]
mov byte [ebp + eax - 0x18c], 0
jmp 0x4bf2d4
push 0x5f87ac
lea ecx, [ebp - 0x7c]
call fcn.005686b0
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push str.usertabb991
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [ebp - 0x228], eax
call fcn.004ba3a0
add esp, 4
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x4bf3b3
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.005687e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x190]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x1c0]
jmp 0x4bf8ba
mov ecx, dword [ebp + 8]
push ecx
push str.select__from_usertabb991_where_field_1_s
lea edx, [ebp - 0x194]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
push 3
push 0
push 1
lea ecx, [ebp - 0x194]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x7c]
call fcn.005688c0
lea ecx, [ebp - 0x7c]
call fcn.00569470
test eax, eax
jne 0x4bf861
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18c]
push ecx
push str._s_s.dll
lea edx, [ebp - 0x194]
push edx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0x10
push 0x5a53e4
lea ecx, [ebp - 0x194]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4bf4a5
push 0x5a53e8
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1c4]
push ecx
call fcn.00402d80
add esp, 0xc
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x190]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0
push 0
lea ecx, [ebp - 0x190]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call sub.mfc90.dll_Ordinal_1183
push 0x5a5400
lea ecx, [ebp - 0x1dc]
call fcn.004c6040
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x23c]
push edx
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x1c8]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00569720
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x244], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x244]
call fcn.004c5ad0
mov ecx, eax
call fcn.004c61f0
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x24c]
call fcn.004c5ad0
mov ecx, eax
call fcn.004c60e0
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1e0]
call fcn.004047e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c8]
call fcn.004047e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1dc]
call fcn.004dd570
cmp dword [ebp - 0x1a0], 0
jle 0x4bf716
lea ecx, [ebp - 0x1b4]
call fcn.00403700
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0x20c]
push edx
push str.vbacode
lea ecx, [ebp - 0x1f4]
call fcn.004c6040
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x1f8]
push edx
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00569720
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x25c]
call fcn.004c5ad0
mov ecx, eax
call fcn.004c61f0
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x264], edx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x264]
call fcn.004c5ad0
mov ecx, eax
call fcn.004c6120
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x1b4]
call fcn.004c6070
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x20c]
call fcn.004dd570
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1f8]
call fcn.004047e0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1e4]
call fcn.004047e0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1f4]
call fcn.004dd570
movzx edx, word [ebp - 0x1b4]
cmp edx, 0x2011
jne 0x4bf707
mov eax, dword [ebp - 0x1a0]
add eax, 1
push eax
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x4bf707
mov dword [ebp - 0x1b8], 0
lea edx, [ebp - 0x1b8]
push edx
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov ecx, dword [ebp - 0x1a0]
push ecx
mov edx, dword [ebp - 0x1b8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1b4]
call fcn.004dd570
lea ecx, [ebp - 0x7c]
call fcn.00568de0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1a0]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 0x1a0]
je 0x4bf7d4
cmp dword [ebp - 0x18], 0
je 0x4bf769
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
push eax
call sub.mfc90.dll_Ordinal_800
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [ebp - 0x218], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.005687e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x190]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x218]
jmp 0x4bf8ba
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4bf806
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
push ecx
call sub.mfc90.dll_Ordinal_800
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x220], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.005687e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x190]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x220]
jmp 0x4bf8ba
mov dword [ebp - 0x224], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.005687e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x190]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x194]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x80]
xor ecx, ebp
call fcn.005795a6
mov esp, ebp
pop ebp
ret