Function at 0x562490
Capabilities:
Terminate process

Disassembly:
sub esp, 0x38
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x34], eax
cmp dword [esp + 0x44], 4
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x2c], 0x70
mov byte [esp + 0x2d], 0x43
mov byte [esp + 0x2e], 0x41
mov byte [esp + 0x2f], 0x4c
mov byte [esp + 0x30], 0
jl 0x5624df
mov ecx, str.Unrecognized_equation_type_for_pCAL_chunk
call fcn.0054c4a0
lea ecx, [esp + 0x28]
push ecx
mov edx, edi
mov ecx, esi
call fcn.00561c70
mov edi, eax
add esp, 4
add edi, 1
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x54]
xor edx, edx
test ecx, ecx
setne dl
mov ebx, eax
add ebx, edx
test esi, esi
lea eax, [ebx + edi + 0xa]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
lea eax, [ecx*4]
je 0x562568
test eax, eax
je 0x562568
mov ecx, dword [esi + 0x23c]
test ecx, ecx
push eax
je 0x56253d
push esi
call ecx
add esp, 8
jmp 0x562545
call fcn.005d3435
add esp, 4
test eax, eax
jne 0x56255e
test dword [esi + 0x70], 0x100000
jne 0x56255e
mov edi, str.Out_of_Memory
mov eax, esi
jmp fcn.0054c480
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xc], eax
jmp 0x562574
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
push ebp
xor ebp, ebp
test ecx, ecx
jle 0x5625c0
mov ebx, dword [esp + 0x1c]
add ecx, 0xffffffff
mov dword [esp + 0x24], ecx
mov edi, eax
sub ebx, eax
lea ebx, [ebx]
mov ecx, dword [ebx + edi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
cmp ebp, dword [esp + 0x24]
setne dl
add ebp, 1
add edi, 4
add eax, edx
add dword [esp + 0x14], eax
cmp ebp, dword [esp + 0x58]
mov dword [edi - 4], eax
jl 0x562590
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.00560210
mov ebp, dword [esp + 0x30]
add esp, 4
test esi, esi
je 0x562616
test ebp, ebp
je 0x562616
test edi, edi
jbe 0x562616
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5626cb
push edi
push ebp
push esi
call eax
add esp, 0xc
test byte [esi + 0x11c], 0x20
je 0x5626a4
mov ecx, dword [esi + 0x70]
and ecx, 0x300
cmp ecx, 0x300
jne 0x5626b1
mov eax, dword [esp + 0x4c]
mov edx, eax
sar edx, 0x18
mov byte [esp + 0x38], dl
mov ecx, eax
sar ecx, 0x10
mov edx, eax
sar edx, 8
mov byte [esp + 0x39], cl
mov byte [esp + 0x3b], al
mov eax, dword [esp + 0x50]
mov byte [esp + 0x3a], dl
mov ecx, eax
sar ecx, 0x18
mov edx, eax
sar edx, 0x10
mov byte [esp + 0x3c], cl
mov ecx, eax
mov byte [esp + 0x3d], dl
mov dl, byte [esp + 0x54]
sar ecx, 8
test esi, esi
mov byte [esp + 0x3f], al
mov al, byte [esp + 0x58]
mov byte [esp + 0x3e], cl
mov byte [esp + 0x40], dl
mov byte [esp + 0x41], al
je 0x56276c
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5626cb
push 0xa
lea ecx, [esp + 0x3c]
push ecx
push esi
call eax
add esp, 0xc
test byte [esi + 0x11c], 0x20
je 0x5626d7
mov edx, dword [esi + 0x70]
and edx, 0x300
cmp edx, 0x300
jne 0x5626e0
jmp 0x5626fa
test dword [esi + 0x70], 0x800
jne 0x562616
mov eax, dword [esi + 0x110]
mov edx, edi
mov ecx, ebp
call fcn.00566310
mov dword [esi + 0x110], eax
jmp 0x562616
mov edi, str.Call_to_NULL_write_function
mov eax, esi
jmp fcn.0054c480
test dword [esi + 0x70], 0x800
jne 0x5626fa
mov eax, dword [esi + 0x110]
mov edx, 0xa
lea ecx, [esp + 0x38]
call fcn.00566310
mov dword [esi + 0x110], eax
mov edi, dword [esp + 0x18]
test edi, edi
je 0x56274d
test ebx, ebx
jbe 0x56274d
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5626cb
push ebx
push edi
push esi
call eax
add esp, 0xc
test byte [esi + 0x11c], 0x20
je 0x56272f
mov eax, dword [esi + 0x70]
and eax, 0x300
cmp eax, 0x300
jne 0x562738
jmp 0x56274d
test dword [esi + 0x70], 0x800
jne 0x56274d
mov eax, dword [esi + 0x110]
mov edx, ebx
mov ecx, edi
call fcn.00566310
mov dword [esi + 0x110], eax
test ebp, ebp
je 0x56276c
mov eax, dword [esi + 0x240]
test eax, eax
push ebp
je 0x562764
push esi
call eax
add esp, 8
jmp 0x56276c
call fcn.005d27e0
add esp, 4
cmp dword [esp + 0x58], 0
mov dword [esp + 0x14], 0
jle 0x562806
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
sub eax, ebx
mov dword [esp + 0x18], eax
jmp 0x562794
mov eax, dword [esp + 0x18]
test esi, esi
mov edi, dword [eax + ebx]
mov ebp, dword [ebx]
je 0x5627f2
test ebp, ebp
je 0x5627f2
test edi, edi
jbe 0x5627f2
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5626cb
push edi
push ebp
push esi
call eax
add esp, 0xc
test byte [esi + 0x11c], 0x20
je 0x5627d4
mov ecx, dword [esi + 0x70]
and ecx, 0x300
cmp ecx, 0x300
jne 0x5627dd
jmp 0x5627f2
test dword [esi + 0x70], 0x800
jne 0x5627f2
mov eax, dword [esi + 0x110]
mov edx, edi
mov ecx, ebp
call fcn.00566310
mov dword [esi + 0x110], eax
mov eax, dword [esp + 0x14]
add eax, 1
add ebx, 4
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
jl 0x562790
test esi, esi
je 0x562874
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x56282d
mov eax, dword [esi + 0x240]
test eax, eax
push ecx
je 0x562825
push esi
call eax
add esp, 8
jmp 0x56282d
call fcn.005d27e0
add esp, 4
mov eax, dword [esi + 0x110]
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x10], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x13], al
mov eax, dword [esi + 0x50]
shr ecx, 0x10
shr edx, 8
test eax, eax
mov dword [esi + 0x2ac], 0x82
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], dl
je 0x5626cb
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x44]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005d28b3
add esp, 0x38
ret