Function at 0x513e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
mov eax, dword [0x704200]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x24], eax
push edi
mov edi, dword [ebp + 0xc]
push 0
lea ecx, [ebx + 0x78]
call fcn.00522a80
push eax
call dword [0x5fd6d8]
test eax, eax
je 0x513e57
cmp dword [ebx + 0x18], 1
mov ecx, ebx
jge 0x513e7e
push 2
call fcn.00513870
mov dword [ebx + 0x2e0], edi
test edi, edi
je 0x513e9d
push 0
mov ecx, edi
call fcn.00522a80
mov ecx, edi
mov edx, eax
call fcn.00521660
push eax
lea ecx, [ebx + 0x78]
call fcn.00521670
jmp 0x513e9f
push dword [esp + 0x28]
push 0xffffffffffffffff
call fcn.00513c80
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0x18
xor edx, edx
push ecx
push edx
push 0xffffffffffffffff
push 0x80000000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x15e
push dword [ebp + 0x10]
lea ecx, [ebx + 0x78]
mov dword [ebx + 0x14], 0x46
push 0x61d050
push 0x621cf8
call fcn.00523050
movsd xmm1, qword [0x6e32b0]
lea ecx, [ebx + 0x78]
push 0
push str.Arial
push 1
push 0x190
call fcn.00521600
push dword [ebx + 0x28]
lea ecx, [ebx + 0x78]
call fcn.005217f0
push 0
lea ecx, [ebx + 0x78]
call fcn.00522a80
mov ecx, dword [ebx + 0x20]
push 4
push dword [ebx + 0x30]
mov dword [esp + 0x2c], eax
push ecx
push ecx
push dword [ebx + 0x1c]
lea ecx, [ebx + 0x78]
push 0x15e
push dword [ebp + 0x10]
call fcn.00516a90
test edi, edi
je 0x513f30
push dword [esp + 0x24]
mov ecx, edi
call fcn.00523490
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x28]
call dword [0x5fd730]
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + 0x78]
push 0xffffffffffffffff
push 0x1080000d
push 0xfa
add eax, 0xffffffec
push eax
push 0xa
push 0xa
push 0x621ae8
push str._Date__time_n_Operation_result
call fcn.0051dac0
push eax
lea ecx, [ebx + 0x78]
mov dword [ebx + 0x18], eax
call fcn.00522a80
mov esi, dword [0x5fd6c8]
mov edi, eax
push 0xa0
push 0
push 0x101e
push edi
call esi
mov ecx, dword [ebp + 0x10]
add ecx, 0xffffff38
movzx ecx, cx
push ecx
push 1
push 0x101e
push edi
call esi
movsd xmm0, qword [0x6e32a0]
lea edi, [ebx + 0x78]
sub esp, 0xc
movsd qword [esp + 4], xmm0
push 0
push ecx
push 0x190
push 0xffffffffffffffff
mov ecx, edi
call fcn.0051bfb0
push 0x1800
mov ecx, edi
call fcn.00521690
mov eax, dword [ebx + 0x14]
push ecx
push 0xffffffffffffffff
push eax
push eax
push 0x10e
push 0xa
push 0
call fcn.0051d550
mov esi, dword [ebx + 0x28]
mov edx, esi
movzx ecx, byte [ebx + 0x2a]
or edx, 0xffffff00
push dword [ebx + 0x20]
shl edx, 0x10
and esi, 0xff00
or edx, ecx
mov dword [ebx], eax
or edx, esi
push edx
push dword [ebx + 0x1c]
push ecx
push eax
push edi
lea ecx, [ebx + 0x34]
call fcn.005149a0
mov esi, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xa
push esi
push 0
push 0
push 0
mov ecx, edi
call fcn.0051dd30
push 0xfffffffffffffffe
push 0xffffffffffffffff
mov ecx, edi
mov dword [ebx + 0x10], eax
call fcn.0051c260
push 0x800
mov ecx, edi
call fcn.00521690
mov eax, dword [ebx + 0x14]
sub esi, eax
push 0xffffffffffffffff
push 0x10001800
push eax
sub esi, 0x1e
add eax, 0x14
push esi
push 0x10e
push eax
push 0
call fcn.0051e130
mov ecx, dword [ebx + 0x20]
movzx edx, cl
and ecx, 0xff00
mov dword [ebx + 4], eax
movzx eax, byte [ebx + 0x22]
shl edx, 0x10
or edx, eax
or edx, ecx
mov ecx, edi
push edx
push 0xffffffffffffffff
call fcn.0051c260
push dword [ebx + 0x28]
mov ecx, edi
push 0xffffffffffffffff
call fcn.0051c110
sub esp, 8
mov ecx, ebx
call fcn.00513840
mov ecx, dword [esp + 0x30]
mov edx, eax
call fcn.005398f0
mov ecx, dword [esp + 0x3c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041e465
mov esp, ebp
pop ebp
ret 0x18