Function at 0x42f355
Capabilities:
Write file on windows

Disassembly:
mov eax, 0xa660
call fcn.004c6360
mov eax, dword [0x54e864]
xor eax, esp
mov dword [esp + 0xa65c], eax
mov eax, dword [esp + 0xa664]
push esi
push edi
mov edi, dword [esp + 0xa670]
push eax
call fcn.0045cbf0
mov esi, eax
add esp, 4
test esi, esi
je 0x42f604
mov edx, dword [esp + 0xa674]
push ebx
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x670]
push ecx
push edx
push edi
call fcn.00471720
mov al, byte [esp + 0x67c]
mov ecx, dword [esp + 0x67e]
mov bl, byte [esp + 0x67d]
lea edx, [esp + 0xa8]
mov byte [esp + 0x23], al
mov dword [esp + 0x24], ecx
mov eax, dword [esi + 0xc]
push edx
push eax
call fcn.004483f0
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x588]
push edx
call fcn.00429b30
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x59c]
push 0x4de114
push ecx
call dword [sym.imp.MSVCR100.dll_sscanf]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
movzx edx, bl
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
lea eax, [esp + 0x7c]
push 0x4de120
push eax
call edi
lea ecx, [esp + 0x84]
add esp, 0x54
push ecx
call fcn.0042ed00
push eax
call fcn.0045cd30
mov esi, eax
add esp, 8
test esi, esi
je 0x42f475
mov bl, byte [esp + 0xf]
movsx eax, bl
dec eax
cmp eax, 7
ja case.default.0x42f288
jmp dword [eax*4 + 0x42f61c]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x98]
push eax
push str.Obtenido_historico_de_pagos_de_maquina__s___s_
push 0
call fcn.0042a000
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
lea ecx, [esp + 0x68a]
push ecx
push edx
push esi
push 4
call fcn.0041da90
lea eax, [esp + 0x124]
push 0x4de15c
push eax
call edi
add esp, 0x34
jmp case.default.0x42f288
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x98]
push edx
push str.Obtenido_historico_de_pagos_de_maquina__s___s_._No_se_envia_a_base_de_datos.
push 0
call fcn.0042a000
lea eax, [esp + 0x108]
push 0x4de1f0
push eax
call edi
add esp, 0x18
jmp case.default.0x42f288
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x98]
push edx
push str.Obtenido_historico_de_billetes_de_maquina__s___s_
push 0
call fcn.0042a000
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea eax, [esp + 0x68a]
push eax
push ecx
push esi
push 2
call fcn.0041da90
lea edx, [esp + 0x124]
push 0x4de200
push edx
call edi
add esp, 0x34
jmp case.default.0x42f288
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x98]
push ecx
push str.Obtenido_historico_de_billetes_de_maquina__s___s_._No_se_envia_a_base_de_datos.
push 0
call fcn.0042a000
lea edx, [esp + 0x108]
push 0x4de214
push edx
call edi
add esp, 0x18
jmp case.default.0x42f288
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x98]
push ecx
push str.Obtenido_historico_de_eventos_de_maquina__s___s_
push 0
call fcn.0042a000
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x68a]
push edx
push eax
push esi
push 3
call fcn.0041da90
lea ecx, [esp + 0x124]
push 0x4de2ac
push ecx
call edi
add esp, 0x34
jmp case.default.0x42f288
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x98]
push eax
push str.Obtenido_historico_de_eventos_de_maquina__s___s_._No_se_envia_a_base_de_datos.
push 0
call fcn.0042a000
lea ecx, [esp + 0x108]
push 0x4de310
push ecx
call edi
add esp, 0x18
jmp case.default.0x42f288
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x98]
push eax
push str.Obtenido_historico_de_Sas_de_maquina__s___s_
push 0
call fcn.0042a000
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
lea ecx, [esp + 0x68a]
push ecx
push edx
push esi
push 5
call fcn.0041da90
lea eax, [esp + 0x124]
push 0x4de354
push eax
call edi
add esp, 0x34
jmp case.default.0x42f288
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x98]
push edx
push str.Obtenido_historico_de_Sas_de_maquina__s___s_._No_se_envia_a_base_de_datos.
push 0
call fcn.0042a000
lea eax, [esp + 0x108]
push 0x4de3ec
push eax
call edi
add esp, 0x18
jmp case.default.0x42f288
lea ecx, [esp + 0x30]
push ecx
push str.Error_al_guardar_un_historico._No_encontramos_la_maquina__s
push 0
call fcn.0042a000
mov bl, byte [esp + 0x1b]
add esp, 0xc
cmp bl, 5
je 0x42f4a5
cmp bl, 6
je 0x42f4a5
cmp bl, 7
je 0x42f4a5
cmp bl, 8
jne 0x42f603
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x566c]
push eax
push ecx
lea edx, [esp + 0x67a]
push edx
mov ecx, 0x551330
call fcn.0042c1d0
lea eax, [esp + 0x30]
push eax
call fcn.0042a540
add esp, 4
push 0x104
lea ecx, [esp + 0x368]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
lea edx, [esp + 0x470]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x374]
push ecx
call dword [sym.imp.MSVCR100.dll__splitpath]
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x484]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x284]
push str._s_sLog_s_s.enc
push eax
call edi
lea ecx, [esp + 0x28c]
push 0x4de410
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 0x34
test esi, esi
je 0x42f5ec
push 0x4de414
push 0x4de418
lea edx, [esp + 0x204]
push 0x4de420
push edx
call edi
lea eax, [esp + 0x20c]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f580
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push esi
sub eax, edx
push 1
push eax
lea eax, [esp + 0x208]
push eax
call edi
push esi
push 1
lea ecx, [esp + 0x28]
push 4
push ecx
call edi
push esi
push 1
lea edx, [esp + 0x3c]
push 4
push edx
call edi
mov eax, dword [esp + 0x44]
push esi
push 1
push eax
lea ecx, [esp + 0x56a4]
push ecx
call edi
add esp, 0x40
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0xa65c]
xor ecx, esp
call fcn.004c6212
add esp, 0xa660
ret
lea edx, [esp + 0x260]
push edx
push 0x4de438
push 0
call fcn.0042a000
add esp, 0xc
pop ebx
mov ecx, dword [esp + 0xa664]
pop edi
pop esi
xor ecx, esp
call fcn.004c6212
add esp, 0xa660
ret